aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ghedini <al3xbio@gmail.com>2012-10-15 16:06:54 +0200
committerDaniel Stenberg <daniel@haxx.se>2012-10-16 00:18:44 +0200
commit1a02e84589efb3f8717d50bdc78d3f369b799198 (patch)
treeda09e038f6c575d2931f99f7654ff7707cba7c0e
parentc79c0909d9d2ef16e119f5517a84e8ab706bf61a (diff)
gnutls: put reset code into else block
Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=690551
-rw-r--r--lib/gtls.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/gtls.c b/lib/gtls.c
index 3b4dc40a3..f5f95aef8 100644
--- a/lib/gtls.c
+++ b/lib/gtls.c
@@ -309,10 +309,11 @@ static CURLcode handshake(struct connectdata *conn,
failf(data, "gnutls_handshake() failed: %s", gnutls_strerror(rc));
return CURLE_SSL_CONNECT_ERROR;
}
-
- /* Reset our connect state machine */
- connssl->connecting_state = ssl_connect_1;
- return CURLE_OK;
+ else {
+ /* Reset our connect state machine */
+ connssl->connecting_state = ssl_connect_1;
+ return CURLE_OK;
+ }
}
}