From 70741f6417210920e8cc471958d1584638d2fa98 Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Thu, 13 Oct 2022 20:18:13 +0100 Subject: [PATCH] coap-server.c: Handle ongoing proxy setup failure --- examples/coap-server.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/coap-server.c b/examples/coap-server.c index f35cf09a..c2c3e984 100644 --- a/examples/coap-server.c +++ b/examples/coap-server.c @@ -1102,6 +1102,8 @@ hnd_proxy_uri(coap_resource_t *resource COAP_UNUSED, ongoing = get_ongoing_proxy_session(session, response, &token, query, req_code, req_type, &uri); + if (!ongoing) + goto cleanup; /* * Build up the ongoing PDU that we are going to send */