Преглед изворни кода

Do not crash when no desc is found

svn:r1546
Nick Mathewson пре 21 година
родитељ
комит
eaf7c61ebc
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/or/rendservice.c

+ 1 - 1
src/or/rendservice.c

@@ -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;