summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-06-29 21:19:39 +0200
committerHarald Welte <laforge@gnumonks.org>2012-06-29 21:19:39 +0200
commita01b6ded75a1426bf64eb6146a874120dc5c95a2 (patch)
tree1dfd1d391c646cf0ca9c048e926955c0310cc874
parent527c87ca1f2ba4d426ecabafa3ba9f82562c0adf (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)