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


Change subject: mgcp-cli: Mark iofd ptr as NULL when freed
......................................................................

mgcp-cli: Mark iofd ptr as NULL when freed

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



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

diff --git a/src/libosmo-mgcp-client/mgcp_client.c 
b/src/libosmo-mgcp-client/mgcp_client.c
index e577b34..09b1953 100644
--- a/src/libosmo-mgcp-client/mgcp_client.c
+++ b/src/libosmo-mgcp-client/mgcp_client.c
@@ -1051,6 +1051,7 @@
        osmo_iofd_txqueue_clear(mgcp->iofd);
        LOGPMGW(mgcp, LOGL_INFO, "MGCP association: %s -- closed!\n", 
osmo_iofd_get_name(mgcp->iofd));
        osmo_iofd_free(mgcp->iofd);
+       mgcp->iofd = NULL;
 }

 /*! Get the IP-Aaddress of the associated MGW as string.

--
To view, visit https://gerrit.osmocom.org/c/osmo-mgw/+/39178?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: Ie3cd7b49c9cd5514f81289ac5ec1ccee14c8509c
Gerrit-Change-Number: 39178
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>

Reply via email to