Do not crash when no desc is found

svn:r1546
This commit is contained in:
Nick Mathewson 2004-04-08 01:54:02 +00:00
parent 9d38311ae3
commit eaf7c61ebc

View File

@ -720,7 +720,7 @@ int rend_services_init(void) {
/* If there's no need to republish, stop here. */
now = time(NULL);
if (!changed &&
if (!changed && service->desc &&
service->desc->timestamp+MAX_SERVICE_PUBLICATION_INTERVAL >= now)
continue;