From 7e0c193eab0c1ce4ca765405e9c93241044e2ebc Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Tue, 10 Sep 2002 18:21:36 +0000 Subject: if wrong password, dont read passwd_file --- file.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'file.c') 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 #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 */ ; } -- cgit v1.2.3