aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2023-12-04 09:57:00 +0100
committerFlorin Coras <florin.coras@gmail.com>2023-12-04 17:28:33 +0000
commit7521d6745a82ec6dc179decb34a1e76a5726ab4c (patch)
tree5873a488e46fdbfe417cebdd26baebcb3f8679d9 /src
parent4338683b07fa25c22b754c7e808ef33dff661566 (diff)
http: fix coverity warning
Type: fix Change-Id: I659a67293763a6035cfa64a4057ebf716fe93ab4 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/http/http.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/http/http.c b/src/plugins/http/http.c
index 9cd1382aaa3..d404e734d48 100644
--- a/src/plugins/http/http.c
+++ b/src/plugins/http/http.c
@@ -779,7 +779,9 @@ state_cln_wait_method (http_conn_t *hc, transport_send_params_t *sp)
}
app_wrk = app_worker_get_if_valid (as->app_wrk_index);
- app_worker_rx_notify (app_wrk, as);
+ if (app_wrk)
+ app_worker_rx_notify (app_wrk, as);
+
return HTTP_SM_STOP;
}