mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-02 07:55:46 +03:00
coap-client.c: Do not report token failures for ping packets in nack handler
This commit is contained in:
1 parent
f91a7fab31
commit
cd06a72916
1 file changed
+1
-1
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user