1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sock/dtls: fix return value of sock_dtls_session_create()

This commit is contained in:
János Brodbeck 2020-10-09 22:56:45 +02:00
parent c21b72b5e8
commit 4e35f473a4
No known key found for this signature in database
GPG Key ID: 65C193B0D8D1BCE6

View File

@ -794,7 +794,8 @@ static inline int sock_dtls_session_create(sock_dtls_t *sock,
return res;
}
return sock_dtls_recv(sock, remote, buf, sizeof(buf), timeout);
res = sock_dtls_recv(sock, remote, buf, sizeof(buf), timeout);
return res == -SOCK_DTLS_HANDSHAKE ? 0 : res;
}
#include "sock_dtls_types.h"