php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #62654
Patch fpm_sockets.patch revision 2012-07-24 23:10 UTC by mike at maytech dot net

Patch fpm_sockets.patch for FPM related Bug #62654

Patch version 2012-07-24 23:10 UTC

Return to Bug #62654 | Download this patch
Patch Revisions:

Developer: mike@maytech.net

--- fpm_sockets.c.orig	Tue Jul 24 22:35:22 2012
+++ fpm_sockets.c	Fri Jul 20 09:45:08 2012
@@ -455,11 +455,11 @@
 
 #endif
 
-int fpm_socket_unix_test_connect(struct sockaddr_un *sun, size_t socklen) /* {{{ */
+int fpm_socket_unix_test_connect(struct sockaddr_un *sock, size_t socklen) /* {{{ */
 {
 	int fd;
 
-	if (!sun || sun->sun_family != AF_UNIX) {
+	if (!sock || sock->sun_family != AF_UNIX) {
 		return -1;
 	}
 
@@ -467,7 +467,7 @@
 		return -1;
 	}
 
-	if (connect(fd, (struct sockaddr *)sun, socklen) == -1) {
+	if (connect(fd, (struct sockaddr *)sock, socklen) == -1) {
 		return -1;
 	}
 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 17:01:58 2024 UTC