Merge branch 'issue400' into 'master'

Close fd and stop ev_io on failed handshake.

Closes #400

See merge request openconnect/ocserv!253
This commit is contained in:
Nikos Mavrogiannopoulos
2021-02-04 20:56:06 +00:00

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",
gnutls_strerror(ret));
dtls->udp_state = UP_DISABLED;
ev_io_stop(worker_loop, &dtls->io);
break;
}