Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 4a32a6c

Browse files
fixes for coverity tool reported issues. (ARMmbed#1772)
CID: 270645, and 270646 are fixed by this pull request.
1 parent 545d262 commit 4a32a6c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

source/MAC/IEEE802_15_4/mac_mcps_sap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ static uint8_t mac_data_interface_decrypt_packet(mac_pre_parsed_frame_t *b, mlme
610610
return MLME_UNAVAILABLE_KEY;
611611
}
612612

613-
if (neighbour_validation.frameCounter < b->neigh_info->FrameCounter ) {
613+
if (b->neigh_info && neighbour_validation.frameCounter < b->neigh_info->FrameCounter ) {
614614
tr_debug("MLME_COUNTER_ERROR");
615615
return MLME_COUNTER_ERROR;
616616
}

source/MAC/IEEE802_15_4/mac_pd_sap.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,10 +429,9 @@ static int8_t mac_data_interface_tx_done_cb(protocol_interface_rf_mac_setup_s *r
429429

430430
case PHY_LINK_TX_DONE_PENDING:
431431
mac_tx_done_state_set(rf_ptr, MAC_TX_DONE_PENDING);
432-
433432
break;
434433

435-
case PHY_LINK_CCA_PREPARE:
434+
default:
436435
break;
437436
}
438437
if (rf_ptr->fhss_api) {

0 commit comments

Comments
 (0)