Fix FastCGI fds default value

This commit is contained in:
2023-07-05 13:11:49 +02:00
parent 733b73760c
commit 2e3146f69a
3 changed files with 8 additions and 6 deletions

@ -379,7 +379,7 @@ int sock_close(sock *s) {
SSL_free(s->ssl);
s->ssl = NULL;
}
close(s->socket);
if (s->socket != -1) close(s->socket);
s->socket = -1;
s->enc = 0, s->pipe = 0;
errno = e;