summaryrefslogtreecommitdiff
path: root/code/core/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/core/core.c')
-rw-r--r--code/core/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/code/core/core.c b/code/core/core.c
index ab4041f..fafda4f 100644
--- a/code/core/core.c
+++ b/code/core/core.c
@@ -1349,6 +1349,7 @@ int ecp_msg_defrag(ECPFragIter *iter, ecp_seq_t seq, unsigned char *msg_in, size
} else {
if (iter->seq + frag_cnt != seq) {
iter->seq = seq - frag_cnt;
+ iter->frag_cnt = 0;
return ECP_ERR_ITER;
}
if (iter->frag_cnt != frag_cnt) return ECP_ERR_ITER;