Skip to content

Commit 94f8210

Browse files
Squashed 'features/nanostack/sal-stack-nanostack/' changes from 7963594..2535a6c
2535a6c Merge branch 'release_internal' into release_external 6bc9e00 Merge pull request ARMmbed#1783 from ARMmbed/mac_fix 8b1577e Fixed possible memory leak at mac pd_sap_ind() function. git-subtree-dir: features/nanostack/sal-stack-nanostack git-subtree-split: 2535a6c
1 parent f292d7a commit 94f8210

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/MAC/IEEE802_15_4/mac_pd_sap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ int8_t mac_pd_sap_data_cb(void *identifier, arm_phy_sap_msg_t *message)
700700
}
701701
//Do not accept commend frame with length 0
702702
if (fcf_read.frametype == FC_CMD_FRAME && length == 0) {
703-
return -1;
703+
goto ERROR_HANDLER;
704704
}
705705

706706
//Parse IE Elements

0 commit comments

Comments
 (0)