Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
webui: fix /redir URL crash
  • Loading branch information
perexg committed Jun 22, 2015
1 parent d6f95cf commit 88cace2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/webui/webui.c
Expand Up @@ -1435,6 +1435,8 @@ http_redir(http_connection_t *hc, const char *remain, void *opaque)
char buf[256];
int nc;

if (!remain)
return HTTP_STATUS_BAD_REQUEST;
nc = http_tokenize((char *)remain, components, 3, '/');
if(!nc)
return HTTP_STATUS_BAD_REQUEST;
Expand Down

0 comments on commit 88cace2

Please sign in to comment.