Skip to content

Commit

Permalink
FW-880. Include ID Context in context lookup.
Browse files Browse the repository at this point in the history
  • Loading branch information
malishav committed Jul 1, 2020
1 parent fff9adf commit 0058e49
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openweb/opencoap/coap.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,9 @@ void coap_receive(OpenQueueEntry_t *msg) {
do {
if (temp_desc->securityContext != NULL &&
temp_desc->securityContext->recipientIDLen == rcvdKidLen &&
memcmp(rcvdKid, temp_desc->securityContext->recipientID, rcvdKidLen) == 0) {
memcmp(rcvdKid, temp_desc->securityContext->recipientID, rcvdKidLen) == 0 &&
temp_desc->securityContext->idContextLen == rcvdKidContextLen &&
memcmp(rcvdKidContext, temp_desc->securityContext->idContext, rcvdKidContextLen) == 0) {

blindContext = temp_desc->securityContext;
break;
Expand Down

0 comments on commit 0058e49

Please sign in to comment.