Skip to content

Commit b6ca147

Browse files
committed
Fix merge for ext/sockets
1 parent 15163de commit b6ca147

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
@@ -1717,7 +1717,7 @@ PHP_FUNCTION(socket_sendto)
17171717
case AF_UNIX:
17181718
memset(&s_un, 0, sizeof(s_un));
17191719

1720-
if (addr_len >= sizeof(s_un.sun_path)) {
1720+
if (ZSTR_LEN(addr) >= sizeof(s_un.sun_path)) {
17211721
zend_argument_value_error(5, "must be less than %d", sizeof(s_un.sun_path));
17221722
RETURN_THROWS();
17231723
}

0 commit comments

Comments
 (0)