diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-09-10 18:21:36 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-09-10 18:21:36 +0000 |
commit | 7e0c193eab0c1ce4ca765405e9c93241044e2ebc (patch) | |
tree | 17445219e46f5fb92bc7c90bdfb55f775907bded /file.c | |
parent | fclose (diff) | |
download | w3m-7e0c193eab0c1ce4ca765405e9c93241044e2ebc.tar.gz w3m-7e0c193eab0c1ce4ca765405e9c93241044e2ebc.zip |
if wrong password, dont read passwd_file
Diffstat (limited to '')
-rw-r--r-- | file.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 */ ; } |