summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-07-12 01:08:37 +0200
committerHarald Welte <laforge@gnumonks.org>2015-11-15 14:04:06 +0100
commit55747d3c358aa3e2739d5d09422e2798d426c87f (patch)
tree4a46f3d3333e945aa18f066e4d010766b77059aa
parent74fcfa03c74e020623dd16def305077c559e0422 (diff)
ganc: fix segfault during memset()
-rw-r--r--openbsc/src/osmo-ganc/ganc_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/osmo-ganc/ganc_server.c b/openbsc/src/osmo-ganc/ganc_server.c
index 100ad8c..e3205ce 100644
--- a/openbsc/src/osmo-ganc/ganc_server.c
+++ b/openbsc/src/osmo-ganc/ganc_server.c
@@ -80,7 +80,7 @@ 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));
+ memset(ie, 0, sizeof(*ie));
ie->ecmc = 0; /* Early Classmark allowed */
ie->nmo = 0; /* NMO 1 */