[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r12619: karsten's bugfix on r12607 (tor/trunk/src/or)
Author: arma
Date: 2007-11-30 18:45:16 -0500 (Fri, 30 Nov 2007)
New Revision: 12619
Modified:
tor/trunk/src/or/rendcommon.c
Log:
karsten's bugfix on r12607
Modified: tor/trunk/src/or/rendcommon.c
===================================================================
--- tor/trunk/src/or/rendcommon.c 2007-11-30 23:32:25 UTC (rev 12618)
+++ tor/trunk/src/or/rendcommon.c 2007-11-30 23:45:16 UTC (rev 12619)
@@ -1076,13 +1076,14 @@
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;
}