Skip to content

Commit 9eaac69

Browse files
committed
Fix considition
1 parent e13d106 commit 9eaac69

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
@@ -2086,7 +2086,7 @@ PHP_FUNCTION(socket_set_option)
20862086
RETURN_THROWS();
20872087
}
20882088
struct accept_filter_arg af = {0};
2089-
if (Z_STRLEN_P(arg4) > sizeof(af.af_name)) {
2089+
if (Z_STRLEN_P(arg4) >= sizeof(af.af_name)) {
20902090
zend_argument_value_error(4, "must be less than %zu bytes when argument #3 ($option) is SO_ACCEPTFILTER", sizeof(af.af_name));
20912091
RETURN_THROWS();
20922092
}

0 commit comments

Comments
 (0)