Merge pull request #6944 from ShooterIT/acl-compiler-warning

To avoid compiler warnings
This commit is contained in:
Salvatore Sanfilippo 2020-03-02 16:53:17 +01:00 committed by GitHub
commit bd07f121b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1830,6 +1830,7 @@ void aclCommand(client *c) {
case ACL_DENIED_CMD: reasonstr="command"; break;
case ACL_DENIED_KEY: reasonstr="key"; break;
case ACL_DENIED_AUTH: reasonstr="auth"; break;
default: reasonstr="unknown";
}
addReplyBulkCString(c,reasonstr);