add fclose to shadow login
authorJeremy Tan <[email protected]>
Wed, 30 Oct 2013 01:22:57 +0000 (09:22 +0800)
committerJeremy Tan <[email protected]>
Wed, 30 Oct 2013 01:24:18 +0000 (09:24 +0800)
server/login.c

index 3445c04..f3209fa 100644 (file)
@@ -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);

UCC git Repository :: git.ucc.asn.au