summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2022-08-11 19:28:58 -0700
committerFlorin Coras <florin.coras@gmail.com>2022-08-12 02:13:59 +0000
commit28d5c1231c6a3875b356921a7178c6aeac3a8dd2 (patch)
tree171e1e6146daea81c892b9a5a43c1ccc0d6a2b1b /src/plugins
parentf5b8e8d624be67315eb5b4ee33783d6cc98b7256 (diff)
http_static: validate session before sending
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I18b9d0d67f5fe4c1714427259df29026153d8dd1
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/http_static/static_server.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/http_static/static_server.c b/src/plugins/http_static/static_server.c
index b92af892eaf..cd36be7ccb6 100644
--- a/src/plugins/http_static/static_server.c
+++ b/src/plugins/http_static/static_server.c
@@ -133,6 +133,8 @@ hss_session_send_data (hss_url_handler_args_t *args)
hss_session_t *hs;
hs = hss_session_get (args->sh.thread_index, args->sh.session_index);
+ if (!hs)
+ return;
if (hs->data && hs->free_data)
vec_free (hs->data);