diff --git a/daemon/remote.c b/daemon/remote.c index 605fd45e1..23dce8eb9 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -2123,6 +2123,7 @@ static int flush(char const* rpcurl, tr_variant** benc) break; default: + evbuffer_add(buf, "", 1); fprintf(stderr, "Unexpected response: %s\n", evbuffer_pullup(buf, -1)); status |= EXIT_FAILURE; break;