]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Curl_ssl_close(): mark the connection as not using SSL anymore, to better
authorDaniel Stenberg <daniel@haxx.se>
Sat, 21 Apr 2007 21:24:53 +0000 (21:24 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 21 Apr 2007 21:24:53 +0000 (21:24 +0000)
survive getting called twice

lib/sslgen.c

index 6bf2403958b3b32ed1d71976b849ecde74fc32e4..faabeeb0d19da36c8d0ff605299bcca710c71929 100644 (file)
@@ -413,17 +413,14 @@ void Curl_ssl_close(struct connectdata *conn)
   if(conn->ssl[FIRSTSOCKET].use) {
 #ifdef USE_SSLEAY
     Curl_ossl_close(conn);
-#else
+#endif /* USE_SSLEAY */
 #ifdef USE_GNUTLS
     Curl_gtls_close(conn);
-#else
-#ifdef USE_GNUTLS
+#endif /* USE_GNUTLS */
+#ifdef USE_NSS
     Curl_nss_close(conn);
-#else
-  (void)conn;
 #endif /* USE_NSS */
-#endif /* USE_GNUTLS */
-#endif /* USE_SSLEAY */
+    conn->ssl[FIRSTSOCKET].use = FALSE;
   }
 }