mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
coverity 181574: confirm uri_ptr non-null before deref
This commit is contained in:
parent
3c360d5192
commit
1690581cd2
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue