소스 검색

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;