if you're going to ask it to use a body of length 0,

don't give it a body.


svn:r2742
This commit is contained in:
Roger Dingledine 2004-11-09 10:18:41 +00:00
parent dd3a12c929
commit 233f516d61

View 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); msg = smartlist_join_strings(answers, "", 0, &msg_len);
send_control_message(conn, CONTROL_CMD_CONFVALUE, send_control_message(conn, CONTROL_CMD_CONFVALUE,
(uint16_t)msg_len, msg); (uint16_t)msg_len, msg_len?msg:NULL);
done: done:
if (answers) SMARTLIST_FOREACH(answers, char *, cp, tor_free(cp)); if (answers) SMARTLIST_FOREACH(answers, char *, cp, tor_free(cp));