| 113 | } |
| 114 | |
| 115 | int authRequired(client *c) { |
| 116 | /* Check if the user is authenticated. This check is skipped in case |
| 117 | * the default user is flagged as "nopass" and is active. */ |
| 118 | int auth_required = (!(DefaultUser->flags & USER_FLAG_NOPASS) || |
| 119 | (DefaultUser->flags & USER_FLAG_DISABLED)) && |
| 120 | !c->authenticated; |
| 121 | return auth_required; |
| 122 | } |
| 123 | |
| 124 | client *createClient(connection *conn, int iel) { |
| 125 | client *c = new client; |
no outgoing calls
no test coverage detected