commit | b4c7b274a1365e896affc1e1cb9a5075e3100e2a | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <zecke@selfish.org> | Tue Apr 06 11:12:22 2010 +0200 |
committer | Holger Hans Peter Freyther <zecke@selfish.org> | Tue Apr 06 12:13:19 2010 +0200 |
tree | 1d780a9349ec98084cd90c0f8c53d8d58784900c | |
parent | 7279d24232d000697297b1ad50da4cf012da2418 [diff] |
[mgcp] Reset the the address when freeing the endp as well
diff --git a/openbsc/src/mgcp/mgcp_protocol.c b/openbsc/src/mgcp/mgcp_protocol.c index ba1d6d8..bbdc43e 100644 --- a/openbsc/src/mgcp/mgcp_protocol.c +++ b/openbsc/src/mgcp/mgcp_protocol.c
@@ -728,4 +728,6 @@ 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)); }