ACL: add a reference to the user in each client.

This commit is contained in:
antirez
2019-01-10 16:33:48 +01:00
parent 4729f71495
commit 4278104acc
3 changed files with 35 additions and 27 deletions

View File

@ -119,6 +119,7 @@ client *createClient(int fd) {
c->argc = 0;
c->argv = NULL;
c->cmd = c->lastcmd = NULL;
c->user = ACLGetUserByName("default",7);
c->multibulklen = 0;
c->bulklen = -1;
c->sentlen = 0;