From ae7f229a39b7287cc39aaf86883b2035fb6407d4 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 15 Jul 2016 18:28:13 +0200 Subject: Forgot to reset some data MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libcoopgamma.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libcoopgamma.c') diff --git a/src/libcoopgamma.c b/src/libcoopgamma.c index 5762aa5..832e109 100644 --- a/src/libcoopgamma.c +++ b/src/libcoopgamma.c @@ -1473,6 +1473,9 @@ int libcoopgamma_synchronise(libcoopgamma_context_t* restrict ctx, return 0; } *selected = 0; + ctx->bad_message = 0; + ctx->have_all_headers = 0; + ctx->length = 0; ctx->inbound_tail = ctx->curline; return -2; } -- cgit v1.2.3-70-g09d2