commit 05a0dc4bd1f05f921f78d52963ce1a31c4d04df8
parent 650116cc62d86a9019dd83668b65659bdbe4c90a
Author: ukai <ukai>
Date: Tue, 10 Sep 2002 18:11:30 +0000
fclose
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/file.c b/file.c
@@ -1388,7 +1388,7 @@ find_auth_user_passwd(char *host, int port, char *file, char *realm,
continue;
if (strcmp(tok, "machine") == 0) {
if (matched && *uname && *pwd)
- return 1;
+ break;
*uname = NULL;
*pwd = NULL;
if (strcmp(d, host) == 0)
@@ -1419,6 +1419,7 @@ find_auth_user_passwd(char *host, int port, char *file, char *realm,
/* ignore? */ ;
}
}
+ fclose(fp);
if (matched && *uname && *pwd)
return 1;