mirror of
https://github.com/espressif/openthread.git
synced 2026-08-31 14:29:54 +00:00
[dtls] map OT errors from send callback to MBEDTLS_ERR_NET_SEND_FAILED (#3259)
Credit to OSS-Fuzz.
This commit is contained in:
@@ -534,7 +534,8 @@ int Dtls::HandleMbedtlsTransmit(const unsigned char *aBuf, size_t aLength)
|
||||
break;
|
||||
|
||||
default:
|
||||
assert(false);
|
||||
otLogWarnMeshCoP("Dtls::HandleMbedtlsTransmit: %s error", otThreadErrorToString(error));
|
||||
rval = MBEDTLS_ERR_NET_SEND_FAILED;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
#include <mbedtls/entropy.h>
|
||||
#include <mbedtls/entropy_poll.h>
|
||||
#include <mbedtls/error.h>
|
||||
#include <mbedtls/net_sockets.h>
|
||||
#include <mbedtls/ssl.h>
|
||||
#include <mbedtls/ssl_cookie.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user