[lchan] Fix the SAPI reset in the chan allocation...

Reset the whole array instead of just the first element.
This commit is contained in:
Holger Hans Peter Freyther 2009-11-18 22:59:51 +01:00
parent b9bda7bebd
commit 45b0243a41
1 changed files with 1 additions and 1 deletions

View File

@ -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;