summaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-ganc/ganc_server.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-07-12 01:08:37 +0200
committerHarald Welte <laforge@gnumonks.org>2012-07-12 01:08:37 +0200
commit1cacf5fac318847de484e722e5965c1dc0d4e732 (patch)
tree9943a98eb59678b096e1a23f736d32245ef6f583 /openbsc/src/osmo-ganc/ganc_server.c
parent7e0c5f09e0088c0a9743ec431e068b6b600f0a2f (diff)
ganc: fix segfault during memset()
Diffstat (limited to 'openbsc/src/osmo-ganc/ganc_server.c')
-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 100ad8cf9..e3205ce9e 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 */