Skip to content

Commit

Permalink
coap_send_internal: Log OSCORE failed PDU
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdeep1 committed Nov 23, 2024
1 parent 4c6ab62 commit 9b0ec2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/coap_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -1851,6 +1851,8 @@ coap_send_internal(coap_session_t *session, coap_pdu_t *pdu) {

if (osc_pdu == NULL) {
coap_log_warn("OSCORE: PDU could not be encrypted\n");
if (coap_get_log_level() < COAP_LOG_DEBUG)
coap_show_pdu(COAP_LOG_WARN, pdu);
goto error;
}
bytes_written = coap_send_pdu(session, osc_pdu, NULL);
Expand Down

0 comments on commit 9b0ec2d

Please sign in to comment.