From 95df5c0179f6b24d31c6720a43434755ed58aa22 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 1 May 2010 23:53:26 +0200 Subject: msgb: initialize cb[] to zero during msgb_reset() --- src/msgb.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/msgb.c b/src/msgb.c index 9117a0ad..a60e2ffa 100644 --- a/src/msgb.c +++ b/src/msgb.c @@ -85,4 +85,6 @@ void msgb_reset(struct msgb *msg) msg->l2h = NULL; msg->l3h = NULL; msg->l4h = NULL; + + memset(&msg->cb, 0, sizeof(msg->cb)); } -- cgit v1.2.3