aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-09-10 18:11:30 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-09-10 18:11:30 +0000
commit6d8e1b51946fcdd1e782f3971a9ae3adfd227c35 (patch)
tree48d985d4ff4b4e95cf9f6e48eb1d9f487a3ea8ce /file.c
parent[w3m-dev 03307] add password_file support (diff)
downloadw3m-6d8e1b51946fcdd1e782f3971a9ae3adfd227c35.tar.gz
w3m-6d8e1b51946fcdd1e782f3971a9ae3adfd227c35.zip
fclose
Diffstat (limited to 'file.c')
-rw-r--r--file.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/file.c b/file.c
index 60a6ac5..6d3a382 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.97 2002/09/10 17:27:46 ukai Exp $ */
+/* $Id: file.c,v 1.98 2002/09/10 18:11:30 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -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;