浏览代码

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;