diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-05-23 21:33:57 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-05-23 21:33:57 +0800 |
commit | 4752e0c3decddc6ca6a30f2a50ee07d71ba2a552 (patch) | |
tree | e6a14b089e22d0163cd96b75223e88800bc4e5de /openbsc/src/gprs/gprs_llc.c | |
parent | d6ca49633c89c7cfe0812600eb3a8b109f34730f (diff) |
gprs_llc.c: memset the llhp struct to be sure it is initialized.
Diffstat (limited to 'openbsc/src/gprs/gprs_llc.c')
-rw-r--r-- | openbsc/src/gprs/gprs_llc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/gprs/gprs_llc.c b/openbsc/src/gprs/gprs_llc.c index ee65a9177..8b569ccb5 100644 --- a/openbsc/src/gprs/gprs_llc.c +++ b/openbsc/src/gprs/gprs_llc.c @@ -496,6 +496,7 @@ int gprs_llc_rcvmsg(struct msgb *msg, struct tlv_parsed *tv) /* Identifiers from DOWN: NSEI, BVCI, TLLI */ + memset(&llhp, 0, sizeof(llhp)); rc = gprs_llc_hdr_parse(&llhp, lh, TLVP_LEN(tv, BSSGP_IE_LLC_PDU)); gprs_llc_hdr_dump(&llhp); if (rc < 0) { |