r13972@catbus: nickm | 2007-07-29 00:01:38 -0400

Make our control events for multi-line async replies conform to our old grammar.  Change back to the old grammar (which got "corrected" in r10931).


svn:r10964
This commit is contained in:
Nick Mathewson
2007-07-29 04:03:25 +00:00
parent 25bd4204d0
commit 964e4a305d
3 changed files with 12 additions and 6 deletions
+6 -2
View File
@@ -3145,8 +3145,9 @@ control_event_or_authdir_new_descriptor(const char *action,
strlcpy(buf, firstline, totallen);
strlcpy(buf+strlen(firstline), esc, totallen);
send_control_event_string(EVENT_AUTHDIR_NEWDESCS, ALL_NAMES|ALL_FORMATS,
buf);
buf);
send_control_event_string(EVENT_AUTHDIR_NEWDESCS, ALL_NAMES|ALL_FORMATS,
"650 OK\r\n");
tor_free(esc);
tor_free(buf);
@@ -3178,6 +3179,9 @@ control_event_networkstatus_changed(smartlist_t *statuses)
smartlist_free(strs);
tor_free(s);
send_control_event_string(EVENT_NS, ALL_NAMES|ALL_FORMATS, esc);
send_control_event_string(EVENT_NS, ALL_NAMES|ALL_FORMATS,
"650 OK\r\n");
tor_free(esc);
return 0;
}