Return an username by its name, or NULL if the user does not exist. */
| 1162 | |
| 1163 | /* Return an username by its name, or NULL if the user does not exist. */ |
| 1164 | user *ACLGetUserByName(const char *name, size_t namelen) { |
| 1165 | void *myuser = raxFind(Users,(unsigned char*)name,namelen); |
| 1166 | if (myuser == raxNotFound) return NULL; |
| 1167 | return myuser; |
| 1168 | } |
| 1169 | |
| 1170 | /* Check if the command is ready to be executed in the client 'c', already |
| 1171 | * referenced by c->cmd, and can be executed by this client according to the |
no test coverage detected