]> Pileus Git - ~andy/fetchmail/commitdiff
Fixed brown-paper-bag password bug (only showed up if it was necessary
authorEric S. Raymond <esr@thyrsus.com>
Sun, 18 Feb 2001 17:23:20 +0000 (17:23 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Sun, 18 Feb 2001 17:23:20 +0000 (17:23 -0000)
to prompt).

svn path=/trunk/; revision=3114

fetchmail.c

index 52257dbdd8a050decdb842694d32358e9ec0ac61..7b5efbf957f8f9b150b41ee2300378e0542c8b7b 100644 (file)
@@ -324,7 +324,7 @@ int main(int argc, char **argv)
     {
        if (ctl->active && !(implicitmode && ctl->server.skip)&&!ctl->password)
        {
-           if (ctl->server.preauthenticate > A_PASSWORD || ctl->server.protocol < P_ETRN)
+           if (ctl->server.preauthenticate > A_PASSWORD || ctl->server.protocol >= P_ETRN)
                /* Server won't care what the password is, but there
                   must be some non-null string here.  */
                ctl->password = ctl->remotename;