gnutls: put reset code into else block

Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=690551
This commit is contained in:
Alessandro Ghedini 2012-10-15 16:06:54 +02:00 committed by Daniel Stenberg
parent c79c0909d9
commit 1a02e84589

View File

@ -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;
}
}
}