aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Dudka <kdudka@redhat.com>2009-12-02 17:24:38 +0000
committerKamil Dudka <kdudka@redhat.com>2009-12-02 17:24:38 +0000
commitfb2425b1479c124f7c8b88cde8be91053c036264 (patch)
treeabb5af98d1571ee2f7db1d157087322e315c3c47
parent2286f566d03fdab4e3ab3d73998a42ffa95e801d (diff)
lib/nss.c: avoid use of uninitialized value
-rw-r--r--lib/nss.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/nss.c b/lib/nss.c
index 893ca2edc..30a55faf0 100644
--- a/lib/nss.c
+++ b/lib/nss.c
@@ -990,7 +990,9 @@ CURLcode Curl_nss_connect(struct connectdata *conn, int sockindex)
{
PRInt32 err;
PRFileDesc *model = NULL;
- PRBool ssl2, ssl3, tlsv1;
+ PRBool ssl2 = PR_FALSE;
+ PRBool ssl3 = PR_FALSE;
+ PRBool tlsv1 = PR_FALSE;
struct SessionHandle *data = conn->data;
curl_socket_t sockfd = conn->sock[sockindex];
struct ssl_connect_data *connssl = &conn->ssl[sockindex];
@@ -1106,8 +1108,6 @@ CURLcode Curl_nss_connect(struct connectdata *conn, int sockindex)
if(SSL_OptionSet(model, SSL_HANDSHAKE_AS_CLIENT, PR_TRUE) != SECSuccess)
goto error;
- ssl2 = ssl3 = tlsv1 = PR_FALSE;
-
switch (data->set.ssl.version) {
default:
case CURL_SSLVERSION_DEFAULT: