cURL / Mailing Lists / curl-library / Single Mail

curl-library

[Patch] url.c

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Tue, 04 Oct 2011 18:26:06 +0200

url.c doesn't compile w/o "#define USE_SLL". Here goes:

--- Git-latest/lib/url.c Tue Oct 04 16:23:23 2011
+++ lib/url.c Tue Oct 04 18:17:20 2011
@@ -2084,10 +2084,12 @@
       if(data->share->cookies == data->cookies)
         data->cookies = NULL;

+#ifdef USE_SSL
       if(data->share->sslsession == data->state.session) {
         data->state.session = NULL;
         data->set.ssl.numsessions = 0;
       }
+#endif

       data->share->dirty--;

@@ -2120,10 +2122,13 @@
         data->cookies = data->share->cookies;
       }
 #endif /* CURL_DISABLE_HTTP */
+
+#ifdef USE_SSL
       if(data->share->sslsession) {
         data->set.ssl.numsessions = data->share->nsslsession;
         data->state.session = data->share->sslsession;
       }
+#endif
       Curl_share_unlock(data, CURL_LOCK_DATA_SHARE);

     }

------------

BTW, In share.h, shouldn't the member 'nsslsessions' be inside a
#ifdef USE_SSL?

--gv
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-10-04