aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-09-10 18:21:36 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-09-10 18:21:36 +0000
commit7e0c193eab0c1ce4ca765405e9c93241044e2ebc (patch)
tree17445219e46f5fb92bc7c90bdfb55f775907bded /file.c
parentfclose (diff)
downloadw3m-7e0c193eab0c1ce4ca765405e9c93241044e2ebc.tar.gz
w3m-7e0c193eab0c1ce4ca765405e9c93241044e2ebc.zip
if wrong password, dont read passwd_file
Diffstat (limited to '')
-rw-r--r--file.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/file.c b/file.c
index 6d3a382..c1be464 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.98 2002/09/10 18:11:30 ukai Exp $ */
+/* $Id: file.c,v 1.99 2002/09/10 18:21:36 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -1470,7 +1470,8 @@ getAuthCookie(struct http_auth *hauth, char *auth_header,
else
ss = find_auth_cookie(pu->host, pu->port, pu->file, realm);
if (realm && ss == NULL) {
- if (find_auth_user_passwd(pu->host, pu->port, pu->file, realm,
+ if (!a_found &&
+ find_auth_user_passwd(pu->host, pu->port, pu->file, realm,
&uname, &pwd)) {
/* found username & password in passwd file */ ;
}