diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-06 11:12:22 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-06 11:12:22 +0200 |
commit | 5ef1234dd3500d884933f359a4dd0b5651306e98 (patch) | |
tree | c5badaae57790944417f9cf13f065c6af42a072c | |
parent | 581e58d16645d8cd0e1a62776f4d2a570f3b2445 (diff) |
[mgcp] Reset the the address when freeing the endp as well
-rw-r--r-- | openbsc/src/mgcp/mgcp_protocol.c | 2 |
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)); } |