From: Dr. Stephen Henson Date: Fri, 26 May 2006 13:27:58 +0000 (+0000) Subject: Fix warnings. X-Git-Tag: OpenSSL_0_9_8k^2~1292 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6657b9c73acfddc9b3fe86da0ee63494c7826742;p=oweals%2Fopenssl.git Fix warnings. --- diff --git a/apps/pkcs12.c b/apps/pkcs12.c index ec9cc89114..2e1c0e2c4a 100644 --- a/apps/pkcs12.c +++ b/apps/pkcs12.c @@ -815,6 +815,7 @@ int get_cert_chain (X509 *cert, X509_STORE *store, STACK_OF(X509) **chain) *chain = chn; err: X509_STORE_CTX_cleanup(&store_ctx); + *chain = NULL; return i; } diff --git a/apps/pkeyutl.c b/apps/pkeyutl.c index a3ac23c2d8..497ae9753e 100644 --- a/apps/pkeyutl.c +++ b/apps/pkeyutl.c @@ -99,7 +99,7 @@ int MAIN(int argc, char **argv) int keysize = -1; unsigned char *buf_in = NULL, *buf_out = NULL, *sig = NULL; - int buf_inlen, buf_outlen, siglen = -1; + int buf_inlen = 0, buf_outlen, siglen = -1; int ret = 1, rv = -1; @@ -539,7 +539,7 @@ static int do_keyop(EVP_PKEY_CTX *ctx, int pkey_op, unsigned char *out, size_t *poutlen, unsigned char *in, size_t inlen) { - int rv; + int rv = 0; switch(pkey_op) { case EVP_PKEY_OP_VERIFYRECOVER: diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index c59fb556d9..7a87da6105 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -2048,7 +2048,7 @@ SSL_CIPHER *ssl3_choose_cipher(SSL *s, STACK_OF(SSL_CIPHER) *clnt, #ifndef OPENSSL_NO_TLSEXT #ifndef OPENSSL_NO_EC int ec_ok, ec_nid; - unsigned char ec_search1, ec_search2; + unsigned char ec_search1 = 0, ec_search2 = 0; #endif /* OPENSSL_NO_EC */ #endif /* OPENSSL_NO_TLSEXT */ CERT *cert;