cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Curl_ssl_kill_session called with --without-ssl

From: Alejandro Álvarez Ayllón <alejandro.alvarez.ayllon_at_cern.ch>
Date: Mon, 3 Oct 2011 09:28:24 +0200

My fault.

I think this should do it:

diff --git a/lib/share.c b/lib/share.c
index a3eae16..78da890 100644
--- a/lib/share.c
+++ b/lib/share.c
@@ -186,11 +186,13 @@ curl_share_cleanup(CURLSH *sh)
    if(share->cookies)
      Curl_cookie_cleanup(share->cookies);

    if(share->sslsession) {
+#ifdef USE_SSL
      for(i = 0; i < share->nsslsession; ++i)
        Curl_ssl_kill_session(&(share->sslsession[i]));
+#endif
      free(share->sslsession);
    }

    if(share->unlockfunc)
      share->unlockfunc(NULL, CURL_LOCK_DATA_SHARE, share->clientdata);

Alejandro Álvarez Ayllón

Tor Arntsen wrote on 30/09/11 12:09:
> 5793bc370c7 introduced Curl_ssl_kill_session() in sslgen.c/h, and it's
> called from lib/share.c
> However, it's been called also when compiling with --without-ssl
> resulting in a link failure (because sslgen.o won't be linked)
>
> See e.g. http://curl.haxx.se/dev/log.cgi?id=20110930070646-21543#prob3
> Anyone got a fix for that already, or do you want me to work on it?
>
> -Tor
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-10-03