aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2023-08-11 14:40:13 -0700
committerFlorin Coras <florin.coras@gmail.com>2023-08-11 21:33:58 +0000
commit09c0e8fac288bd09f21fda33096ec033f807271f (patch)
tree3412fd4ec668267781e1ca5c773db1d86f8d7950 /src/plugins
parentef68bb57db90df98dd8e2bda8b7bc4dbfa85b89b (diff)
session: fix coverity warnings
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I910c8ce1713c6d346cc5ea4eb58a89c1c30a10a1
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/http/http.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/http/http.c b/src/plugins/http/http.c
index 503752c377e..d13f91159e4 100644
--- a/src/plugins/http/http.c
+++ b/src/plugins/http/http.c
@@ -503,7 +503,8 @@ state_srv_wait_method (http_conn_t *hc, transport_send_params_t *sp)
hc->http_state = HTTP_STATE_WAIT_APP;
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;