mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-30 11:33:56 +00:00
mgw: mgcp_protocol: assert freeing last conn allows creating new conn
Change-Id: Ib8c9089a7f04bc67e5bdfb1148cfc603f0e17bb7
This commit is contained in:
@@ -976,6 +976,7 @@ mgcp_header_done:
|
|||||||
* room by blindly tossing the oldest of the two two
|
* room by blindly tossing the oldest of the two two
|
||||||
* connections */
|
* connections */
|
||||||
mgcp_endp_free_conn_oldest(endp);
|
mgcp_endp_free_conn_oldest(endp);
|
||||||
|
OSMO_ASSERT(!mgcp_endp_is_full(endp));
|
||||||
} else {
|
} else {
|
||||||
/* There is no more room for a connection, leave
|
/* There is no more room for a connection, leave
|
||||||
* everything as it is and return with an error */
|
* everything as it is and return with an error */
|
||||||
|
|||||||
Reference in New Issue
Block a user