X-Git-Url: https://git.ucc.asn.au/?p=matches%2FMCTX3420.git;a=blobdiff_plain;f=server%2Flogin.c;h=f3209facc74f15c2de5e692941893569ef456920;hp=3445c04ff1649054b50f4dbbec845010ff703306;hb=0ff0cf164af4c65064fb6a3ca4749396453ad631;hpb=797dd747d118bdfb374d220017b035382c4ec3c7 diff --git a/server/login.c b/server/login.c index 3445c04..f3209fa 100644 --- a/server/login.c +++ b/server/login.c @@ -170,6 +170,8 @@ UserType Login_Shadow(const char * user, const char * pass, const char * shadow) passwd_index = -1; } + fclose(f); + if (passwd_index <= 0) { //Log(LOGDEBUG,"No user found matching %s\n", user);