diff options
author | Steve Holme <steve_holme@hotmail.com> | 2014-12-25 17:15:15 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-12-25 17:15:15 +0000 |
commit | 6cb7b0c0acdfc49e289fedfb3d1c29103f47a2e6 (patch) | |
tree | 00d02974de45b6b2920d4f4929c99b854ece1ba9 /lib/vtls/polarssl.c | |
parent | 38aaf6c380210c5261f8c2ce2823380845c539fb (diff) |
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.
Diffstat (limited to 'lib/vtls/polarssl.c')
-rw-r--r-- | lib/vtls/polarssl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/vtls/polarssl.c b/lib/vtls/polarssl.c index 822617846..7780b5ac6 100644 --- a/lib/vtls/polarssl.c +++ b/lib/vtls/polarssl.c @@ -488,7 +488,7 @@ polarssl_connect_step3(struct connectdata *conn, struct SessionHandle *data = conn->data; void *old_ssl_sessionid = NULL; ssl_session *our_ssl_sessionid = &conn->ssl[sockindex].ssn ; - int incache; + bool incache; DEBUGASSERT(ssl_connect_3 == connssl->connecting_state); @@ -501,6 +501,7 @@ polarssl_connect_step3(struct connectdata *conn, incache = FALSE; } } + if(!incache) { void *new_session = malloc(sizeof(ssl_session)); |