summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-06-29 21:19:39 +0200
committerHarald Welte <laforge@gnumonks.org>2015-11-15 14:04:06 +0100
commit8ecce1d5487d8da07763ec69e00e2cac00aabe44 (patch)
treea60354b7aa64dd2d7220db17240753e2b5abd264
parent46601d52bc4ef8442422e2d367aa70beb58a378b (diff)
ganc: properly zero-initialize the GAN CCH description IE
As Dieter points out, the structure was not properly zero-initialized...
-rw-r--r--openbsc/src/osmo-ganc/ganc_server.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/src/osmo-ganc/ganc_server.c b/openbsc/src/osmo-ganc/ganc_server.c
index 3e4d8f7..67b00f6 100644
--- a/openbsc/src/osmo-ganc/ganc_server.c
+++ b/openbsc/src/osmo-ganc/ganc_server.c
@@ -78,6 +78,9 @@ static void build_gan_cch_desc(struct gan_cch_desc_ie *ie, struct ganc_bts *bts)
{
struct ganc_net *net = bts->net;
+ /* properly initialize to zero */
+ memset(&ie, 0, sizeof(ie));
+
ie->ecmc = 0; /* Early Classmark allowed */
ie->nmo = 0; /* NMO 1 */
if (net->gprs.mode != 0)