aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/mgcp/mgcp_protocol.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-06 11:12:22 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-06 12:13:19 +0200
commitb4c7b274a1365e896affc1e1cb9a5075e3100e2a (patch)
tree1d780a9349ec98084cd90c0f8c53d8d58784900c /openbsc/src/mgcp/mgcp_protocol.c
parent7279d24232d000697297b1ad50da4cf012da2418 (diff)
[mgcp] Reset the the address when freeing the endp as well
Diffstat (limited to 'openbsc/src/mgcp/mgcp_protocol.c')
-rw-r--r--openbsc/src/mgcp/mgcp_protocol.c2
1 files changed, 2 insertions, 0 deletions
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));
}