[or-cvs] if you"re going to ask it to use a body of length 0,

Roger Dingledine arma at seul.org
Tue Nov 9 10:18:43 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	control.c 
Log Message:
if you're going to ask it to use a body of length 0,
don't give it a body.


Index: control.c
===================================================================
RCS file: /home/or/cvsroot/src/or/control.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- control.c	9 Nov 2004 10:08:42 -0000	1.19
+++ control.c	9 Nov 2004 10:18:41 -0000	1.20
@@ -272,7 +272,7 @@
 
   msg = smartlist_join_strings(answers, "", 0, &msg_len);
   send_control_message(conn, CONTROL_CMD_CONFVALUE,
-                       (uint16_t)msg_len, msg);
+                       (uint16_t)msg_len, msg_len?msg:NULL);
 
  done:
   if (answers) SMARTLIST_FOREACH(answers, char *, cp, tor_free(cp));



More information about the tor-commits mailing list