coap_mbedtls.c: Remove redundant NULL pointer check

As ssl_data is set to the address of the ssl_data component of m_env,
there is no need for a NULL pointer check here.

This fixes CID 1504920.
This commit is contained in:
Olaf Bergmann committed 2021-05-25 11:23:13 +02:00
1 parent 90537d143a
commit 73628f5f2f
1 file changed
+1 -1
+1 -1
View File
@@ -1875,7 +1875,7 @@ int coap_dtls_hello(coap_session_t *c_session,
ret = 0;
}
if (ssl_data && ssl_data->pdu_len) {
if (ssl_data->pdu_len) {
/* pdu data is held on stack which will not stay there */
coap_log(LOG_DEBUG, "coap_dtls_hello: ret %d: remaining data %u\n", ret, ssl_data->pdu_len);
ssl_data->pdu_len = 0;