Skip to content

Commit 49428a2

Browse files
Passing only NULL to auth is a failure for redis_get_auth_info
Fixes: phpredis#1808
1 parent b899689 commit 49428a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3340,7 +3340,7 @@ int redis_extract_auth_info(zval *ztest, zend_string **user, zend_string **pass)
33403340

33413341
/* User passed nothing */
33423342
if (ztest == NULL)
3343-
return SUCCESS;
3343+
return FAILURE;
33443344

33453345
/* Handle a non-array first */
33463346
if (Z_TYPE_P(ztest) != IS_ARRAY) {

0 commit comments

Comments
 (0)