]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
if you're going to ask it to use a body of length 0,
authorRoger Dingledine <arma@torproject.org>
Tue, 9 Nov 2004 10:18:41 +0000 (10:18 +0000)
committerRoger Dingledine <arma@torproject.org>
Tue, 9 Nov 2004 10:18:41 +0000 (10:18 +0000)
don't give it a body.

svn:r2742

src/or/control.c

index bdce4e240cf35bfea439ce02e4ccb82125561674..2df86d906adb0988d9415df62773482c7b9065b3 100644 (file)
@@ -272,7 +272,7 @@ handle_control_getconf(connection_t *conn, uint16_t body_len, const char *body)
 
   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));