Skip to content

Commit 30462b8

Browse files
Pass prefixed key not original
1 parent 9aa3dbf commit 30462b8

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
@@ -3020,7 +3020,7 @@ int redis_migrate_cmd(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock,
30203020
keyfree = redis_key_prefix(redis_sock, &key, &keylen);
30213021

30223022
/* Append the key */
3023-
redis_cmd_append_sstr(&cmdstr, zstr->val, zstr->len);
3023+
redis_cmd_append_sstr(&cmdstr, key, keylen);
30243024

30253025
zend_string_release(zstr);
30263026
if (keyfree) efree(key);

0 commit comments

Comments
 (0)