Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
f5b8e8d
)
http_static: validate session before sending
78/36878/2
author
Florin Coras
<fcoras@cisco.com>
Fri, 12 Aug 2022 02:28:58 +0000
(19:28 -0700)
committer
Florin Coras
<florin.coras@gmail.com>
Fri, 12 Aug 2022 02:13:59 +0000
(
02:13
+0000)
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I18b9d0d67f5fe4c1714427259df29026153d8dd1
src/plugins/http_static/static_server.c
patch
|
blob
|
history
diff --git
a/src/plugins/http_static/static_server.c
b/src/plugins/http_static/static_server.c
index
b92af89
..
cd36be7
100644
(file)
--- 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);