aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-11-09 10:18:41 +0000
committerRoger Dingledine <arma@torproject.org>2004-11-09 10:18:41 +0000
commit233f516d61a32ad788688d6dee922c4b26d92c3a (patch)
treee454e45a3b1c5fe7974e0d6783c390bb5d201ee7 /src
parentdd3a12c92921b34db93b04bc7240b7e1a1e17f0f (diff)
downloadtor-233f516d61a32ad788688d6dee922c4b26d92c3a.tar
tor-233f516d61a32ad788688d6dee922c4b26d92c3a.tar.gz
if you're going to ask it to use a body of length 0,
don't give it a body. svn:r2742
Diffstat (limited to 'src')
-rw-r--r--src/or/control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/control.c b/src/or/control.c
index bdce4e240..2df86d906 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -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));