mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-05 04:05:34 +00:00
TSCH: fix a wrong return value
tsch_security_secure_frame() returns the length of MIC in case of success. Otherwise, it is supposed to return 0. There was one case where it returns 1 in an error handling block.
This commit is contained in:
parent
4069ac5262
commit
3dc74dc632
@ -160,7 +160,7 @@ tsch_security_secure_frame(uint8_t *hdr, uint8_t *outbuf,
|
|||||||
|
|
||||||
if(!frame.fcf.security_enabled) {
|
if(!frame.fcf.security_enabled) {
|
||||||
/* Security is not enabled for this frame, we're done */
|
/* Security is not enabled for this frame, we're done */
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Read security key index */
|
/* Read security key index */
|
||||||
|
Loading…
Reference in New Issue
Block a user