1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

tinydtls_sock_dtls: remove duplicate handle message

This commit is contained in:
Aiman Ismail 2020-04-05 16:11:18 +02:00
parent 82e1a62bf4
commit bd0228342d

View File

@ -410,10 +410,6 @@ ssize_t sock_dtls_recv(sock_dtls_t *sock, sock_dtls_session_t *remote,
timeout = (time_passed > timeout) ? 0: timeout - time_passed;
}
_ep_to_session(&remote->ep, &remote->dtls_session);
res = dtls_handle_message(sock->dtls_ctx, &remote->dtls_session,
(uint8_t *)data, res);
if (sock->buf != NULL) {
return _copy_buffer(sock, data, max_len);
}