aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2012-11-05 13:01:48 +0100
committerDaniel Stenberg <daniel@haxx.se>2012-11-05 13:01:48 +0100
commit09a491378a57ef9c27a8f4e4d7c3516155bca094 (patch)
tree7117619ce795abfbccdb874aac76db599fac20d4 /lib/ftp.c
parent9019a0a86c58db7640013a92cce043da23f0dde0 (diff)
ftp_readresp: fix build without krb4 support
Oops, my previous commit broke builds with krb support.
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index bb7d7a496..7e1b4a0fb 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -632,8 +632,8 @@ static CURLcode ftp_readresp(curl_socket_t sockfd,
size_t *size) /* size of the response */
{
struct connectdata *conn = pp->conn;
-#if defined(HAVE_KRB4) || defined(HAVE_GSSAPI)
struct SessionHandle *data = conn->data;
+#if defined(HAVE_KRB4) || defined(HAVE_GSSAPI)
char * const buf = data->state.buffer;
#endif
CURLcode result = CURLE_OK;
@@ -661,7 +661,7 @@ static CURLcode ftp_readresp(curl_socket_t sockfd,
#endif
/* store the latest code for later retrieval */
- conn->data->info.httpcode=code;
+ data->info.httpcode=code;
if(ftpcode)
*ftpcode = code;