]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
sasl_sspi: Fixed missing free of challenge buffer on SPN failure
authorSteve Holme <steve_holme@hotmail.com>
Sun, 10 Aug 2014 09:33:10 +0000 (10:33 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 10 Aug 2014 09:35:57 +0000 (10:35 +0100)
lib/curl_sasl_sspi.c

index a77b503b213fc4dff928ab281f322605e14b1f3a..f570332fddb4aab615267a19849e95732d274444 100644 (file)
@@ -163,8 +163,11 @@ CURLcode Curl_sasl_create_digest_md5_message(struct SessionHandle *data,
 
   /* Generate our SPN */
   spn = Curl_sasl_build_spn(service, data->easy_conn->host.name);
-  if(!spn)
+  if(!spn) {
+    Curl_safefree(chlg);
+
     return CURLE_OUT_OF_MEMORY;
+  }
 
   /* Populate our identity structure */
   result = Curl_create_sspi_identity(userp, passwdp, &identity);