From e92efb0d8ecfd42e3585963c8b66c61f5451cfa9 Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Sun, 27 Nov 2022 10:05:56 +0000 Subject: don't crash when specifying fcgi UNIX sockets to connect to --- parse.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index 12bb4ad..88051af 100644 --- a/parse.y +++ b/parse.y @@ -1178,7 +1178,8 @@ fastcgi_conf(const char *path, const char *port) if (*f->path == '\0') { f->id = i; (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; } -- cgit v1.2.3