projects
/
platform
/
upstream
/
libwebsockets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
coverity 181574: confirm uri_ptr non-null before deref
[platform/upstream/libwebsockets.git]
/
lib
/
server.c
diff --git
a/lib/server.c
b/lib/server.c
index
668f6f1
..
69b0e8a
100644
(file)
--- a/
lib/server.c
+++ b/
lib/server.c
@@
-777,7
+777,7
@@
lws_http_action(struct lws *wsi)
/* we insist on absolute paths */
- if (uri_ptr[0] != '/') {
+ if (
!uri_ptr ||
uri_ptr[0] != '/') {
lws_return_http_status(wsi, HTTP_STATUS_FORBIDDEN, NULL);
goto bail_nuke_ah;