Skip to content

Commit dc1ff44

Browse files
author
Jason Greene
committed
MFH BSD fix
1 parent ed235cf commit dc1ff44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/sockets/sockets.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ PHP_FUNCTION(socket_bind)
10021002
RETURN_FALSE;
10031003
}
10041004

1005-
retval = bind(php_sock->bsd_socket, (struct sockaddr *)sa, sizeof(sa_storage));
1005+
retval = bind(php_sock->bsd_socket, (struct sockaddr *)sa, sizeof(struct sockaddr_in));
10061006
break;
10071007
}
10081008

0 commit comments

Comments
 (0)