X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Flogin.c;h=f3209facc74f15c2de5e692941893569ef456920;hb=4f9dc7d1f3e1479c046385820db1f63bf0096d69;hp=3445c04ff1649054b50f4dbbec845010ff703306;hpb=3dfde391486e81a357e08a24ccb7903c8adfa5aa;p=matches%2FMCTX3420.git 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);