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:
parent
c21b72b5e8
commit
4e35f473a4
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user