From 1fee3d9a5a74fca466fdcc6ba865cb93c0d42863 Mon Sep 17 00:00:00 2001 From: Robert Johansson Date: Thu, 4 Jul 2013 23:30:27 +0900 Subject: [PATCH] bug fix: don't assume that frame->next is zeroed before mbus_parse is called --- mbus/mbus-protocol.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mbus/mbus-protocol.c b/mbus/mbus-protocol.c index 39d8c03..6ecb015 100755 --- a/mbus/mbus-protocol.c +++ b/mbus/mbus-protocol.c @@ -2489,6 +2489,8 @@ mbus_parse(mbus_frame *frame, unsigned char *data, size_t data_size) if (frame && data && data_size > 0) { + frame->next = NULL; + if (parse_debug) printf("%s: Attempting to parse binary data [size = %zu]\n", __PRETTY_FUNCTION__, data_size);