Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdeep1 committed Jan 28, 2025
1 parent 2a58189 commit 70084d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/oss-fuzz/pdu_parse_udp_target.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {

coap_startup();
pdu = coap_pdu_init(0, 0, 0, size);
coap_pdu_t *pdu = coap_pdu_init(0, 0, 0, size);
if (pdu) {
coap_set_log_level(COAP_LOG_ERR);
if (coap_pdu_parse(COAP_PROTO_UDP, data, size, pdu)) {
Expand All @@ -21,6 +20,8 @@ LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
coap_delete_string(query);
coap_delete_string(uri_path);
}
else
coap_log_err("PDU failed\n");
coap_delete_pdu(pdu);
}
coap_cleanup();
Expand Down

0 comments on commit 70084d7

Please sign in to comment.