Skip to content

Commit 5799ebd

Browse files
rlerdorfcataphract
authored andcommitted
Fix bug #62654
1 parent ffa8461 commit 5799ebd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sapi/fpm/fpm/fpm_sockets.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -455,19 +455,19 @@ int fpm_socket_get_listening_queue(int sock, unsigned *cur_lq, unsigned *max_lq)
455455

456456
#endif
457457

458-
int fpm_socket_unix_test_connect(struct sockaddr_un *sun, size_t socklen) /* {{{ */
458+
int fpm_socket_unix_test_connect(struct sockaddr_un *sock, size_t socklen) /* {{{ */
459459
{
460460
int fd;
461461

462-
if (!sun || sun->sun_family != AF_UNIX) {
462+
if (!sock || sock->sun_family != AF_UNIX) {
463463
return -1;
464464
}
465465

466466
if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) {
467467
return -1;
468468
}
469469

470-
if (connect(fd, (struct sockaddr *)sun, socklen) == -1) {
470+
if (connect(fd, (struct sockaddr *)sock, socklen) == -1) {
471471
return -1;
472472
}
473473

0 commit comments

Comments
 (0)