From 6cb7b0c0acdfc49e289fedfb3d1c29103f47a2e6 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Thu, 25 Dec 2014 17:15:15 +0000 Subject: vtls: Use bool for Curl_ssl_getsessionid() return type The return type of this function is a boolean value, and even uses a bool internally, so use bool in the function declaration as well as the variables that store the return value, to avoid any confusion. --- lib/vtls/cyassl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/vtls/cyassl.c') diff --git a/lib/vtls/cyassl.c b/lib/vtls/cyassl.c index 3746064fe..3333fc3a0 100644 --- a/lib/vtls/cyassl.c +++ b/lib/vtls/cyassl.c @@ -332,7 +332,7 @@ cyassl_connect_step3(struct connectdata *conn, void *old_ssl_sessionid=NULL; struct SessionHandle *data = conn->data; struct ssl_connect_data *connssl = &conn->ssl[sockindex]; - int incache; + bool incache; SSL_SESSION *our_ssl_sessionid; DEBUGASSERT(ssl_connect_3 == connssl->connecting_state); @@ -347,6 +347,7 @@ cyassl_connect_step3(struct connectdata *conn, incache = FALSE; } } + if(!incache) { result = Curl_ssl_addsessionid(conn, our_ssl_sessionid, 0 /* unknown size */); -- cgit v1.2.3