dexter has uploaded this change for review. ( https://gerrit.osmocom.org/10038
Change subject: chan_alloc: delete rtp voice related in lchan_free()
......................................................................
chan_alloc: delete rtp voice related in lchan_free()
The function lchan_free() is supposed to reset the lchan so that
it can be used by another connection. This function does not yet
delete the struct memebers in lchan->abis_ip. This may lead to
confusion if some other end re-uses that lchan and finds old RTP
voice port/ip settings there. Those data must be deleted to
ensure it does accidently migrate into an unrelated conext.
- do a memset to 0 on lchan->abis_ip in lchan_free()
Change-Id: I0c99494292cd1d058a19a21413d0ddb51471c6be
Related: OS#3396
---
M src/osmo-bsc/chan_alloc.c
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/38/10038/1
diff --git a/src/osmo-bsc/chan_alloc.c b/src/osmo-bsc/chan_alloc.c
index a24fbea..9674c69 100644
--- a/src/osmo-bsc/chan_alloc.c
+++ b/src/osmo-bsc/chan_alloc.c
@@ -539,6 +539,9 @@
/* FIXME: ts_free() the timeslot, if we're the last logical
* channel using it */
+
+ /* delete RTP voice connection related data */
+ memset(&lchan->abis_ip, 0, sizeof(lchan->abis_ip));
}
/*
--
To view, visit https://gerrit.osmocom.org/10038
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0c99494292cd1d058a19a21413d0ddb51471c6be
Gerrit-Change-Number: 10038
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <[email protected]>