ftp_readresp: fix build without krb4 support
Oops, my previous commit broke builds with krb support.
This commit is contained in:
@@ -632,8 +632,8 @@ static CURLcode ftp_readresp(curl_socket_t sockfd,
|
|||||||
size_t *size) /* size of the response */
|
size_t *size) /* size of the response */
|
||||||
{
|
{
|
||||||
struct connectdata *conn = pp->conn;
|
struct connectdata *conn = pp->conn;
|
||||||
#if defined(HAVE_KRB4) || defined(HAVE_GSSAPI)
|
|
||||||
struct SessionHandle *data = conn->data;
|
struct SessionHandle *data = conn->data;
|
||||||
|
#if defined(HAVE_KRB4) || defined(HAVE_GSSAPI)
|
||||||
char * const buf = data->state.buffer;
|
char * const buf = data->state.buffer;
|
||||||
#endif
|
#endif
|
||||||
CURLcode result = CURLE_OK;
|
CURLcode result = CURLE_OK;
|
||||||
@@ -661,7 +661,7 @@ static CURLcode ftp_readresp(curl_socket_t sockfd,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* store the latest code for later retrieval */
|
/* store the latest code for later retrieval */
|
||||||
conn->data->info.httpcode=code;
|
data->info.httpcode=code;
|
||||||
|
|
||||||
if(ftpcode)
|
if(ftpcode)
|
||||||
*ftpcode = code;
|
*ftpcode = code;
|
||||||
|
|||||||
Reference in New Issue
Block a user