diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2006-05-26 13:27:58 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2006-05-26 13:27:58 +0000 |
commit | 6657b9c73acfddc9b3fe86da0ee63494c7826742 (patch) | |
tree | 78f069bfacc8dbcd81120663c7cddb9bfe331d1a /apps | |
parent | ba0d04a986db21c1a0777f6df58413dbe8711a29 (diff) |
Fix warnings.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/pkcs12.c | 1 | ||||
-rw-r--r-- | apps/pkeyutl.c | 4 |
2 files changed, 3 insertions, 2 deletions
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: |