diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-11-18 22:59:51 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-11-19 09:40:03 +0100 |
commit | 45b0243a41582a8059a9541114865eade1e476e5 (patch) | |
tree | 49661be93c8ea1f609bc273e436242bd7b660510 | |
parent | b9bda7bebd922c1ac67d048f054f396ada06d12b (diff) |
[lchan] Fix the SAPI reset in the chan allocation...
Reset the whole array instead of just the first element.
-rw-r--r-- | openbsc/src/chan_alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/chan_alloc.c b/openbsc/src/chan_alloc.c index 7464aa96b..bd3ec85b2 100644 --- a/openbsc/src/chan_alloc.c +++ b/openbsc/src/chan_alloc.c @@ -213,7 +213,7 @@ struct gsm_lchan *lchan_alloc(struct gsm_bts *bts, enum gsm_chan_t type) lchan->use_count = 0; /* clear sapis */ - memset(lchan->sapis, 0, sizeof(lchan->sapis)); + memset(lchan->sapis, 0, ARRAY_SIZE(lchan->sapis)); /* Configure the time and start it so it will be closed */ lchan->release_timer.cb = auto_release_channel; |