]> granicus.if.org Git - curl/commitdiff
ftp_readresp: fix build without krb4 support
authorDaniel Stenberg <daniel@haxx.se>
Mon, 5 Nov 2012 12:01:48 +0000 (13:01 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 5 Nov 2012 12:01:48 +0000 (13:01 +0100)
Oops, my previous commit broke builds with krb support.

lib/ftp.c

index bb7d7a49617ae4c0c591c90a480ffd9335b32e26..7e1b4a0fb2a65d06d68e994973d336011529c3b5 100644 (file)
--- 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;