We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15163de commit b6ca147Copy full SHA for b6ca147
1 file changed
ext/sockets/sockets.c
@@ -1717,7 +1717,7 @@ PHP_FUNCTION(socket_sendto)
1717
case AF_UNIX:
1718
memset(&s_un, 0, sizeof(s_un));
1719
1720
- if (addr_len >= sizeof(s_un.sun_path)) {
+ if (ZSTR_LEN(addr) >= sizeof(s_un.sun_path)) {
1721
zend_argument_value_error(5, "must be less than %d", sizeof(s_un.sun_path));
1722
RETURN_THROWS();
1723
}
0 commit comments