Skip to content

Commit

Permalink
Merge pull request ARMmbed#1783 from ARMmbed/mac_fix
Browse files Browse the repository at this point in the history
Fixed possible memory leak at mac pd_sap_ind()
  • Loading branch information
Juha Heiskanen authored Aug 14, 2018
2 parents 9e31d11 + 8b1577e commit 6bc9e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/MAC/IEEE802_15_4/mac_pd_sap.c
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ int8_t mac_pd_sap_data_cb(void *identifier, arm_phy_sap_msg_t *message)
}
//Do not accept commend frame with length 0
if (fcf_read.frametype == FC_CMD_FRAME && length == 0) {
return -1;
goto ERROR_HANDLER;
}

//Parse IE Elements
Expand Down

0 comments on commit 6bc9e00

Please sign in to comment.