diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/auth.c | 1 | ||||
| -rw-r--r-- | src/netcosm.h | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -250,6 +250,7 @@ struct authinfo_t auth_check(const char *name2, const char *pass2) struct authinfo_t ret; ret.success = false; ret.authlevel = PRIV_NONE; + ret.user = NULL; while(1) { diff --git a/src/netcosm.h b/src/netcosm.h index c8566da..be6d1a2 100644 --- a/src/netcosm.h +++ b/src/netcosm.h @@ -31,7 +31,7 @@ struct authinfo_t { bool success; const char *user; - int authlevel; /* 0 = highest */ + int authlevel; }; void client_main(int fd, struct sockaddr_in *addr, int); |