]> granicus.if.org Git - curl/commitdiff
http_ntlm: Fixed additional NSS initialisation call when decoding type-2
authorSteve Holme <steve_holme@hotmail.com>
Sun, 23 Nov 2014 15:46:12 +0000 (15:46 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 23 Nov 2014 16:05:08 +0000 (16:05 +0000)
After commit 48d19acb7c the HTTP code would call Curl_nss_force_init()
twice when decoding a NTLM type-2 message, once directly and the other
through the call to Curl_sasl_decode_ntlm_type2_message().

lib/curl_ntlm.c

index 5d83bbac1fa3b023d064688569c837d133dee152..c77f055d4b1ead08dfcd29ed7ed548adfda7e500 100644 (file)
@@ -70,12 +70,6 @@ CURLcode Curl_input_ntlm(struct connectdata *conn,
   struct ntlmdata *ntlm;
   CURLcode result = CURLE_OK;
 
-#ifdef USE_NSS
-  result = Curl_nss_force_init(conn->data);
-  if(result)
-    return result;
-#endif
-
   ntlm = proxy ? &conn->proxyntlm : &conn->ntlm;
 
   if(checkprefix("NTLM", header)) {