mirror of https://github.com/omar-polo/gmid.git
don't crash when specifying fcgi UNIX sockets to connect to
This commit is contained in:
parent
872a717687
commit
e92efb0d8e
3
parse.y
3
parse.y
|
@ -1178,7 +1178,8 @@ fastcgi_conf(const char *path, const char *port)
|
||||||
if (*f->path == '\0') {
|
if (*f->path == '\0') {
|
||||||
f->id = i;
|
f->id = i;
|
||||||
(void) strlcpy(f->path, path, sizeof(f->path));
|
(void) strlcpy(f->path, path, sizeof(f->path));
|
||||||
(void) strlcpy(f->port, port, sizeof(f->port));
|
if (port != NULL)
|
||||||
|
(void) strlcpy(f->port, port, sizeof(f->port));
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue