This patch fixes problems where ftpget loops continuously
trying to connect to a site with FTP disabled.  The login
attempt counter does not get incremented at the right place.


*** ftpget.c.old        Wed Mar 20 11:03:05 1996
--- ftpget.c    Mon Apr  8 10:10:37 1996
***************
*** 882,887 ****
--- 882,889 ----
  {
      int code;
  
+     r->login_att++;
+ 
      if ((code = read_reply(r->sfd)) > 0) {
        if (code == 220)
            return SERVICE_READY;
***************
*** 907,914 ****
  {
      int code;
  
-     r->login_att++;
- 
      sprintf(cbuf, "USER %s", r->user);
      SEND_CBUF;
  
--- 909,914 ----
***************
*** 1710,1715 ****
--- 1710,1716 ----
            break;
        case FAIL_LOGIN:
            r->state = FAIL_SOFT;
+           Debug(26,1,("r->login_att=%d  o_login_ret=%d\n", r->login_att, o_login_ret));
            if (r->login_att < o_login_ret) {
                sleep(o_login_del);
                r->state = PARSE_OK;
