Commit 496497f8 authored by zhaozhao.zz's avatar zhaozhao.zz
Browse files

ACL: fix null pointer in getuser

parent 711e514e
......@@ -560,6 +560,11 @@ void aclCommand(client *c) {
}
} else if (!strcasecmp(sub,"getuser") && c->argc == 3) {
user *u = ACLGetUserByName(c->argv[2]->ptr,sdslen(c->argv[2]->ptr));
if (u == NULL) {
addReplyNull(c);
return;
}
addReplyMapLen(c,2);
/* Flags */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment