summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@lerdorf.com>2013-10-31 03:06:35 -0700
committerRasmus Lerdorf <rasmus@lerdorf.com>2013-10-31 03:06:35 -0700
commitb4bed6fde09d1737fc118253d2cba03ff10fcaff (patch)
tree7e1b697a7fc02a5a6315e0bd3850e0ed834c8975
parent4ded6ee971d7de3b3f9f2fdf747f5dfcb82cc691 (diff)
downloadphp-git-b4bed6fde09d1737fc118253d2cba03ff10fcaff.tar.gz
Fix bug #66008
-rw-r--r--sapi/fpm/fpm/fpm_sockets.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sapi/fpm/fpm/fpm_sockets.c b/sapi/fpm/fpm/fpm_sockets.c
index 145b2550c3..e056565ea4 100644
--- a/sapi/fpm/fpm/fpm_sockets.c
+++ b/sapi/fpm/fpm/fpm_sockets.c
@@ -487,6 +487,7 @@ int fpm_socket_unix_test_connect(struct sockaddr_un *sock, size_t socklen) /* {{
}
if (connect(fd, (struct sockaddr *)sock, socklen) == -1) {
+ close(fd);
return -1;
}