summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte2010-05-01 23:53:26 +0200
committerHarald Welte2010-05-01 23:53:26 +0200
commit95df5c0179f6b24d31c6720a43434755ed58aa22 (patch)
tree854798ee7eca47859adcdc0865af68bad708f6cc /src
parentImport gsm48_construct_ra() from openbsc (diff)
downloadlibosmocore-95df5c0179f6b24d31c6720a43434755ed58aa22.tar.gz
libosmocore-95df5c0179f6b24d31c6720a43434755ed58aa22.tar.xz
libosmocore-95df5c0179f6b24d31c6720a43434755ed58aa22.zip
msgb: initialize cb[] to zero during msgb_reset()
Diffstat (limited to 'src')
-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));
}