mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-07 18:12:55 +03:00
coap-server.c: Fix CID 1583550
This commit is contained in:
1 parent
841626f64f
commit
ebc693fec0
1 file changed
+1
-5
@@ -1390,11 +1390,7 @@ hnd_put_post(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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user