mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 16:57:00 +08:00
do not try to send binaries if no path is setup
This commit is contained in:
@@ -185,7 +185,7 @@ const char* file;
|
||||
char path[_POSIX_PATH_MAX];
|
||||
struct stat st;
|
||||
|
||||
if (ws->req.url == NULL)
|
||||
if (ws->config->binary_path == NULL || ws->req.url == NULL)
|
||||
return -1;
|
||||
|
||||
file = strrchr(ws->req.url, '/');
|
||||
|
||||
Reference in New Issue
Block a user