mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
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:
+6
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user