summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-11-13 08:26:54 +0100
committerDaniel Stenberg <daniel@haxx.se>2017-11-13 08:27:36 +0100
commitfa1512b2a01fd5feb921c20412f4b7526ac70de6 (patch)
tree3c983bf155aa436d91c346f6f103047f3af6ff72 /lib
parent9f78b0544358abfd8853cc2997dd78f61287550f (diff)
downloadcurl-fa1512b2a01fd5feb921c20412f4b7526ac70de6.tar.gz
SMB: fix uninitialized local variable
Reported-by: Brian Carpenter
Diffstat (limited to 'lib')
-rw-r--r--lib/smb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/smb.c b/lib/smb.c
index 13dfd514b..efcfd2da2 100644
--- a/lib/smb.c
+++ b/lib/smb.c
@@ -648,7 +648,7 @@ static CURLcode smb_connection_state(struct connectdata *conn, bool *done)
if(smbc->state == SMB_CONNECTING) {
#ifdef USE_SSL
if((conn->handler->flags & PROTOPT_SSL)) {
- bool ssl_done;
+ bool ssl_done = FALSE;
result = Curl_ssl_connect_nonblocking(conn, FIRSTSOCKET, &ssl_done);
if(result && result != CURLE_AGAIN)
return result;