pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-mgw/+/39207?usp=email )


Change subject: mgw: mgcp_protocol: assert freeing last conn allows creating 
new conn
......................................................................

mgw: mgcp_protocol: assert freeing last conn allows creating new conn

Change-Id: Ib8c9089a7f04bc67e5bdfb1148cfc603f0e17bb7
---
M src/libosmo-mgcp/mgcp_protocol.c
1 file changed, 1 insertion(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/07/39207/1

diff --git a/src/libosmo-mgcp/mgcp_protocol.c b/src/libosmo-mgcp/mgcp_protocol.c
index 4c8f47c..aed6601 100644
--- a/src/libosmo-mgcp/mgcp_protocol.c
+++ b/src/libosmo-mgcp/mgcp_protocol.c
@@ -976,6 +976,7 @@
                         * room by blindly tossing the oldest of the two two
                         * connections */
                        mgcp_endp_free_conn_oldest(endp);
+                       OSMO_ASSERT(!mgcp_endp_is_full(endp));
                } else {
                        /* There is no more room for a connection, leave
                         * everything as it is and return with an error */

--
To view, visit https://gerrit.osmocom.org/c/osmo-mgw/+/39207?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Change-Id: Ib8c9089a7f04bc67e5bdfb1148cfc603f0e17bb7
Gerrit-Change-Number: 39207
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>

Reply via email to