Skip to content

Commit

Permalink
coap-server.c: Fix CID 1583585
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdeep1 committed Feb 12, 2024
1 parent abcc291 commit 5cb998b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions examples/coap-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -546,11 +546,7 @@ hnd_put_example_data(coap_resource_t *resource,
COAP_CACHE_NOT_RECORD_PDU,
COAP_CACHE_IS_SESSION_BASED, 0);
} else {
data_so_far = coap_cache_get_app_data(cache_entry);
if (data_so_far) {
coap_delete_binary(data_so_far);
data_so_far = NULL;
}
coap_delete_binary(coap_cache_get_app_data(cache_entry));
coap_cache_set_app_data(cache_entry, NULL, NULL);
}
}
Expand Down

0 comments on commit 5cb998b

Please sign in to comment.