Commit b98faaa8 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Fixed bad krb4 code. It always tried to use krb4 if built enabled.

parent 73772323
Loading
Loading
Loading
Loading
+17 −15
Original line number Diff line number Diff line
@@ -2154,7 +2154,8 @@ static CURLcode ftp_state_loggedin(struct connectdata *conn)
  infof(data, "We have successfully logged in\n");

#ifdef HAVE_KRB4
  /* We are logged in with Kerberos, now set the requested
  if(data->set.krb4) {
    /* We are logged in, asked to use Kerberos. Set the requested
     * protection level
     */
    if(conn->sec_complete)
@@ -2170,6 +2171,7 @@ static CURLcode ftp_state_loggedin(struct connectdata *conn)
      if(result)
        return result;
    }
  }
#endif
  if(conn->ssl[FIRSTSOCKET].use) {
    /* PBSZ = PROTECTION BUFFER SIZE.