From b2c3ca3b89ee7ecd827386a4407a3412d5764134 Mon Sep 17 00:00:00 2001 From: kkrentz Date: Fri, 3 Nov 2023 12:12:35 +0100 Subject: [PATCH] coap_net.c: Reuse coap_option_filter_clear in coap_dispatch --- src/coap_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coap_net.c b/src/coap_net.c index 3ba1822b43..17de61052c 100644 --- a/src/coap_net.c +++ b/src/coap_net.c @@ -3577,7 +3577,7 @@ coap_dispatch(coap_context_t *context, coap_session_t *session, pdu->session = session; coap_show_pdu(COAP_LOG_DEBUG, pdu); - memset(&opt_filter, 0, sizeof(coap_opt_filter_t)); + coap_option_filter_clear(&opt_filter); #if COAP_OSCORE_SUPPORT if (!COAP_PDU_IS_SIGNALING(pdu) &&