[mgcp] Reset the the address when freeing the endp as well

This commit is contained in:
Holger Hans Peter Freyther 2010-04-06 11:12:22 +02:00
parent 7279d24232
commit b4c7b274a1
1 changed files with 2 additions and 0 deletions

View File

@ -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));
}