Skip to content

Commit 8689fca

Browse files
author
Tero Heinonen
authored
Reverting address check from transaction find (#89)
Reverting address check from transaction find function. This needs more work, and full functionality will be added in the future commits.
1 parent ca3c3ab commit 8689fca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/coap_message_handler.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ static NS_LIST_DEFINE(request_list, coap_transaction_t, link);
4848

4949
static coap_transaction_t *transaction_find_client_by_token(uint8_t *token, uint8_t token_len, const uint8_t address[static 16], uint16_t port)
5050
{
51+
(void) address;
52+
(void) port;
5153
coap_transaction_t *this = NULL;
5254

5355
ns_list_foreach(coap_transaction_t, cur_ptr, &request_list) {
54-
if ((cur_ptr->remote_port == port) && (memcmp(cur_ptr->remote_address, address, 16) == 0) &&
55-
(cur_ptr->token_len == token_len) && (memcmp(cur_ptr->token, token, token_len) == 0) &&
56-
cur_ptr->client_request) {
56+
if ((cur_ptr->token_len == token_len) && (memcmp(cur_ptr->token, token, token_len) == 0) && cur_ptr->client_request) {
5757
this = cur_ptr;
5858
break;
5959
}

0 commit comments

Comments
 (0)