also clear the local control port when resetting the WTP state

Without reseting the port, the new control socket will be
bound to the same port as the old one.
This commit is contained in:
Andreas Schultz 2016-03-30 09:20:04 +02:00
parent 622f148150
commit 84859e20c4
1 changed files with 2 additions and 0 deletions

View File

@ -583,4 +583,6 @@ void wtp_reset_state(void)
memset(&g_wtp.dtls.localaddr, 0, sizeof(g_wtp.dtls.localaddr));
memset(&g_wtp.dtls.peeraddr, 0, sizeof(g_wtp.dtls.peeraddr));
CAPWAP_SET_NETWORK_PORT(&g_wtp.net.localaddr, 0);
}