Fix Dead Store (Dead Assignment) found by Clang Analyzer
--- src/wtp/wtp_dfa.c | 2 -- 1 file changed, 2 deletions(-)
This commit is contained in:
parent
e5f1fbd992
commit
d12d15d67d
@ -379,10 +379,8 @@ int wtp_dfa_running(void) {
|
||||
/* Check is handshake complete */
|
||||
if ((oldaction == CAPWAP_DTLS_ACTION_HANDSHAKE) && (g_wtp.dtls.action == CAPWAP_DTLS_ACTION_DATA)) {
|
||||
if (g_wtp.state == CAPWAP_DTLS_CONNECT_STATE) {
|
||||
check = CAPWAP_NONE_PACKET;
|
||||
wtp_send_join();
|
||||
} else {
|
||||
check = CAPWAP_WRONG_PACKET;
|
||||
wtp_teardown_connection();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user