worker: when the UDP socket is updated, update the DTLS session

This commit is contained in:
Nikos Mavrogiannopoulos
2014-08-22 11:57:15 +02:00
parent 7774aa9951
commit c567a129f4

View File

@@ -139,6 +139,8 @@ int handle_worker_commands(struct worker_st *ws)
close(fd);
return 0;
}
if (ws->dtls_session != NULL)
gnutls_transport_set_ptr(ws->dtls_session, (gnutls_transport_ptr_t)(long)fd);
} else { /* received client hello */
ws->udp_state = UP_SETUP;
}