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

Commit 721c0b0

Browse files
author
Arto Kinnunen
authored
MLE service releases CCM library in error case (ARMmbed#1719)
CCM libary is relased in error cases to avoid resource lock up.
1 parent d0467a0 commit 721c0b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/Service_Libs/mle_service/mle_service.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ static buffer_t *mle_service_message_security_decode(buffer_t *buf, mle_security
420420
if (!ccm_ptr) {
421421
return buffer_free(buf);
422422
} else if (ccm_ptr->mic_len >= payload_len) {
423+
ccm_process_run(NULL);
423424
return buffer_free(buf);
424425
}
425426

@@ -507,6 +508,7 @@ static buffer_t *mle_message_security_header_set(buffer_t *buf,service_instance_
507508
} else {
508509
tr_warn("Security header alloc fail");
509510
buf = (buffer_t *) 0;
511+
ccm_process_run(NULL);
510512
return buf;
511513
}
512514
}

0 commit comments

Comments
 (0)