do not try to send binaries if no path is setup

This commit is contained in:
Nikos Mavrogiannopoulos
2013-06-03 22:12:43 +02:00
parent 754321c9e6
commit 3e19393936

View File

@@ -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, '/');