diff options
author | Kamil Dudka <kdudka@redhat.com> | 2009-12-02 17:24:38 +0000 |
---|---|---|
committer | Kamil Dudka <kdudka@redhat.com> | 2009-12-02 17:24:38 +0000 |
commit | fb2425b1479c124f7c8b88cde8be91053c036264 (patch) | |
tree | abb5af98d1571ee2f7db1d157087322e315c3c47 /lib | |
parent | 2286f566d03fdab4e3ab3d73998a42ffa95e801d (diff) |
lib/nss.c: avoid use of uninitialized value
Diffstat (limited to 'lib')
-rw-r--r-- | lib/nss.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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: |