]> granicus.if.org Git - curl/commitdiff
curl_sasl: fix build error with CURL_DISABLE_CRYPTO_AUTH + USE_NTLM
authorDaniel Stenberg <daniel@haxx.se>
Tue, 16 May 2017 14:13:03 +0000 (16:13 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 16 May 2017 14:13:03 +0000 (16:13 +0200)
Reported-by: wyattoday at github
Fixes #1487

lib/curl_sasl.c

index b3789dab00dea252a327e718b9afa3a47129a8fa..025b5dbe323c26cd8cc1fb54332995e66e164529 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 2012 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 2012 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -414,8 +414,8 @@ CURLcode Curl_sasl_continue(struct SASL *sasl, struct connectdata *conn,
   const char * const hostname = SSL_IS_PROXY() ? conn->http_proxy.host.name :
     conn->host.name;
   const long int port = SSL_IS_PROXY() ? conn->port : conn->remote_port;
-#if !defined(CURL_DISABLE_CRYPTO_AUTH)
   char *serverdata;
+#if !defined(CURL_DISABLE_CRYPTO_AUTH)
   char *chlg = NULL;
   size_t chlglen = 0;
 #endif