Skip to content

Commit c432c40

Browse files
Fix extended set option detection
1 parent f9b8cc5 commit c432c40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis_commands.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,7 @@ int redis_set_cmd(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock,
12451245

12461246
/* Expiry can't be set < 1 */
12471247
if (expire < 1) return FAILURE;
1248-
} else if (Z_TYPE_PP(v) == IS_STRING && IS_EX_PX_ARG(k)) {
1248+
} else if (Z_TYPE_PP(v) == IS_STRING && IS_NX_XX_ARG(Z_STRVAL_PP(v))) {
12491249
set_type = Z_STRVAL_PP(v);
12501250
}
12511251
}

0 commit comments

Comments
 (0)