Close fd and stop ev_io on failed handshake.

Signed-off-by: Alan Jowett <alanjo@microsoft.com>
This commit is contained in:
Alan Jowett
2021-02-04 09:29:45 -07:00
parent d4800b54e3
commit c53cc97395

View File

@@ -1479,6 +1479,7 @@ static int dtls_mainloop(worker_st * ws, struct dtls_st * dtls, struct timespec
"error in DTLS handshake: %s\n", "error in DTLS handshake: %s\n",
gnutls_strerror(ret)); gnutls_strerror(ret));
dtls->udp_state = UP_DISABLED; dtls->udp_state = UP_DISABLED;
ev_io_stop(worker_loop, &dtls->io);
break; break;
} }