commit | 9a3da81c780182f163ffec87a58ece8442f06330 | [log] [tgz] |
---|---|---|
author | Jeremy Kerr <jk@ozlabs.org> | Fri Aug 02 15:57:53 2019 +0800 |
committer | Jeremy Kerr <jk@ozlabs.org> | Thu Oct 24 18:32:21 2019 +1100 |
tree | 3b938cd0d3ddd53c5ada63cbe1c49a90de6f5fbd | |
parent | c855d7b2e025b4b9cfc8e9b860ad760d73c27159 [diff] |
core: Reset buffer state on new context alloc We need to clear out old context data, otherwise we'll be repeating the previous context's packet. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Change-Id: I5a1cc08afb7846da770e73edb7dafb65904ecb95
diff --git a/core.c b/core.c index 560a4a7..baf60a8 100644 --- a/core.c +++ b/core.c
@@ -167,6 +167,7 @@ ctx->src = src; ctx->tag = tag; + ctx->buf_size = 0; return ctx; }