Fix bug where total_len of reused mk_iov structs would increase with every use.
-- Sonny Karlsson
>From 913ce328e25d291f912259edc4b131b0c4046eea Mon Sep 17 00:00:00 2001 From: Sonny Karlsson <[email protected]> Date: Fri, 1 Feb 2013 10:06:11 +0100 Subject: [PATCH 2/4] iov: Reset total_len in mk_iov_free_marked. Signed-off-by: Sonny Karlsson <[email protected]> --- src/mk_iov.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mk_iov.c b/src/mk_iov.c index 6c6f5bd..24139e2 100644 --- a/src/mk_iov.c +++ b/src/mk_iov.c @@ -144,6 +144,7 @@ void mk_iov_free_marked(struct mk_iov *mk_io) mk_io->iov_idx = 0; mk_io->buf_idx = 0; + mk_io->total_len = 0; } void mk_iov_print(struct mk_iov *mk_io) -- 1.8.0.2
_______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
