coap-client.c: Do not report token failures for ping packets in nack handler

This commit is contained in:
Jon Shallow authored and Jon Shallow committed 2025-04-14 10:08:04 +01:00
1 parent f91a7fab31
commit cd06a72916
1 file changed
+1 -1
+1 -1
View File
@@ -359,7 +359,7 @@ nack_handler(coap_session_t *session COAP_UNUSED,
if (sent) {
coap_bin_const_t token = coap_pdu_get_token(sent);
if (!track_check_token(&token)) {
if (coap_pdu_get_code(sent) != COAP_EMPTY_CODE && !track_check_token(&token)) {
coap_log_err("nack_handler: Unexpected token\n");
}
}