aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-15 18:28:13 +0200
committerMattias Andrée <maandree@kth.se>2016-07-15 18:28:13 +0200
commitae7f229a39b7287cc39aaf86883b2035fb6407d4 (patch)
treecbd26fdbd1689a8db49887e5a9e446ed3e01a96e /src
parentm (diff)
downloadlibcoopgamma-ae7f229a39b7287cc39aaf86883b2035fb6407d4.tar.gz
libcoopgamma-ae7f229a39b7287cc39aaf86883b2035fb6407d4.tar.bz2
libcoopgamma-ae7f229a39b7287cc39aaf86883b2035fb6407d4.tar.xz
Forgot to reset some data
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/libcoopgamma.c3
1 files changed, 3 insertions, 0 deletions
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;
}