Fix warnings.
authorDr. Stephen Henson <steve@openssl.org>
Fri, 26 May 2006 13:27:58 +0000 (13:27 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 26 May 2006 13:27:58 +0000 (13:27 +0000)
apps/pkcs12.c
apps/pkeyutl.c
ssl/s3_lib.c

index ec9cc89114604dc8f3e9b0ed5f22de039c79c77a..2e1c0e2c4a0477ef9080c1728341ece98f1ebdd4 100644 (file)
@@ -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;
 }      
index a3ac23c2d8885879f26ca7e3f5c0baaa58c341bd..497ae9753e6ea2e7fe736eee6403446c9e62c192 100644 (file)
@@ -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:
index c59fb556d93b8305c3f5b1c03db6c0b3e16605dc..7a87da6105c063810738b41e1f6b3ba0bd2b2964 100644 (file)
@@ -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;