Skip to content

Commit

Permalink
Fix LONG_CHECK_VALID_INT in socket extension
Browse files Browse the repository at this point in the history
  • Loading branch information
adoy committed Jun 9, 2022
1 parent 52eb52d commit e2d55f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/sockets/sendrecvmsg.c
Expand Up @@ -72,7 +72,7 @@ inline ssize_t sendmsg(int sockfd, const struct msghdr *msg, int flags)

#define LONG_CHECK_VALID_INT(l, arg_pos) \
do { \
if ((l) < INT_MIN && (l) > INT_MAX) { \
if ((l) < INT_MIN || (l) > INT_MAX) { \
zend_argument_value_error((arg_pos), "must be between %d and %d", INT_MIN, INT_MAX); \
RETURN_THROWS(); \
} \
Expand Down

0 comments on commit e2d55f2

Please sign in to comment.