Skip to content
Snippets Groups Projects
Commit 1690581c authored by Andy Green's avatar Andy Green
Browse files

coverity 181574: confirm uri_ptr non-null before deref

parent 3c360d51
No related branches found
No related tags found
No related merge requests found
...@@ -777,7 +777,7 @@ lws_http_action(struct lws *wsi) ...@@ -777,7 +777,7 @@ lws_http_action(struct lws *wsi)
/* we insist on absolute paths */ /* we insist on absolute paths */
if (uri_ptr[0] != '/') { if (!uri_ptr || uri_ptr[0] != '/') {
lws_return_http_status(wsi, HTTP_STATUS_FORBIDDEN, NULL); lws_return_http_status(wsi, HTTP_STATUS_FORBIDDEN, NULL);
goto bail_nuke_ah; goto bail_nuke_ah;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment