]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
bearssl: fix session resumption (session id)
authorJan Venekamp <1422460+jan2000@users.noreply.github.com>
Mon, 6 Dec 2021 17:35:20 +0000 (18:35 +0100)
committerJay Satiro <raysatiro@yahoo.com>
Sun, 20 Feb 2022 07:47:06 +0000 (02:47 -0500)
Prior to this change br_ssl_client_reset was mistakenly called with
resume_session param set to 0, which disabled session resumption.

Ref: https://github.com/curl/curl/pull/8106

Closes https://github.com/curl/curl/pull/8474

lib/vtls/bearssl.c

index bac6b39314d643eb4f7f355ed2d74c858a0a7055..83a0e96658415830769539bdfd088af2f997850a 100644 (file)
@@ -474,7 +474,7 @@ static CURLcode bearssl_connect_step1(struct Curl_easy *data,
     hostname = snihost;
   }
 
-  if(!br_ssl_client_reset(&backend->ctx, hostname, 0))
+  if(!br_ssl_client_reset(&backend->ctx, hostname, 1))
     return CURLE_FAILED_INIT;
   backend->active = TRUE;