aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-05-01 23:53:26 +0200
committerHarald Welte <laforge@gnumonks.org>2010-05-01 23:53:26 +0200
commit95df5c0179f6b24d31c6720a43434755ed58aa22 (patch)
tree854798ee7eca47859adcdc0865af68bad708f6cc
parent35a939463eee58492c88cbe7531288237cdcf454 (diff)
msgb: initialize cb[] to zero during msgb_reset()0.1.5
-rw-r--r--src/msgb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/msgb.c b/src/msgb.c
index 9117a0a..a60e2ff 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));
}