mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-21 14:59:06 +03:00
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:
1 parent
90537d143a
commit
73628f5f2f
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user