Commit 90927315 authored by vvaltman's avatar vvaltman

add "ANSWER 0" line on empty answers to socket

parent 7ee1d57e
......@@ -165,7 +165,7 @@ void socket_answer_add_printf (const char *format, ...) {
}
void socket_answer_end (struct in_ev *ev) {
if (ev->bev && socket_answer_pos > 0) {
if (ev->bev) {
static char s[100];
sprintf (s, "ANSWER %d\n", socket_answer_pos);
bufferevent_write (ev->bev, s, strlen (s));
......
Subproject commit abcd3899120e5f811feddc63ea7a9ebf65feca9b
Subproject commit 195b2bcccdefd63282654c4d827315a48b677f97
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment