]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
karsten's bugfix on r12607
authorRoger Dingledine <arma@torproject.org>
Fri, 30 Nov 2007 23:45:16 +0000 (23:45 +0000)
committerRoger Dingledine <arma@torproject.org>
Fri, 30 Nov 2007 23:45:16 +0000 (23:45 +0000)
svn:r12619

src/or/rendcommon.c

index a52b916d92957d346d582e282123c42f46331ab5..151ed1b23aba096684aa099e6494aa474c00431a 100644 (file)
@@ -1076,13 +1076,14 @@ rend_cache_store_v2_desc_as_client(const char *desc,
     return -1;
   }
   /* Decode/decrypt introduction points. */
-  if (intro_content &&
-      rend_decrypt_introduction_points(parsed, descriptor_cookie,
-                                       intro_content, intro_size) < 0) {
-    log_warn(LD_PROTOCOL,"Couldn't decode/decrypt introduction points.");
-    rend_service_descriptor_free(parsed);
-    tor_free(intro_content);
-    return -1;
+  if (intro_content) {
+    if (rend_decrypt_introduction_points(parsed, descriptor_cookie,
+                                         intro_content, intro_size) < 0) {
+      log_warn(LD_PROTOCOL,"Couldn't decode/decrypt introduction points.");
+      rend_service_descriptor_free(parsed);
+      tor_free(intro_content);
+      return -1;
+    }
   } else {
     parsed->n_intro_points = 0;
   }