From b4c7b274a1365e896affc1e1cb9a5075e3100e2a Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 6 Apr 2010 11:12:22 +0200 Subject: [mgcp] Reset the the address when freeing the endp as well --- openbsc/src/mgcp/mgcp_protocol.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openbsc/src/mgcp') diff --git a/openbsc/src/mgcp/mgcp_protocol.c b/openbsc/src/mgcp/mgcp_protocol.c index ba1d6d8aa..bbdc43e05 100644 --- a/openbsc/src/mgcp/mgcp_protocol.c +++ b/openbsc/src/mgcp/mgcp_protocol.c @@ -728,4 +728,6 @@ void mgcp_free_endp(struct mgcp_endpoint *endp) endp->net_rtp = endp->net_rtcp = endp->bts_rtp = endp->bts_rtcp = 0; endp->net_payload_type = endp->bts_payload_type = -1; + memset(&endp->remote, 0, sizeof(endp->remote)); + memset(&endp->bts, 0, sizeof(endp->bts)); } -- cgit v1.2.3