diff options
author | Richard Levitte <levitte@openssl.org> | 2015-12-07 20:37:08 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2015-12-07 20:37:08 +0100 |
commit | 39d5193201cd0d73afebbd8c08f641b541c02b77 (patch) | |
tree | 01e63818557aa839978fa56ed164f3286c733cd2 /crypto/srp | |
parent | b91dd150d2b9b5ddca37722e7f52ea59ba7f80da (diff) | |
download | openssl-39d5193201cd0d73afebbd8c08f641b541c02b77.zip openssl-39d5193201cd0d73afebbd8c08f641b541c02b77.tar.gz openssl-39d5193201cd0d73afebbd8c08f641b541c02b77.tar.bz2 |
Fix clang complaints about uninitialised variables.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/srp')
-rw-r--r-- | crypto/srp/srp_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/srp/srp_lib.c b/crypto/srp/srp_lib.c index 0a073b6..4b0ae0d 100644 --- a/crypto/srp/srp_lib.c +++ b/crypto/srp/srp_lib.c @@ -106,9 +106,9 @@ BIGNUM *SRP_Calc_u(BIGNUM *A, BIGNUM *B, BIGNUM *N) { /* k = SHA1(PAD(A) || PAD(B) ) -- tls-srp draft 8 */ - BIGNUM *u; + BIGNUM *u = NULL; unsigned char cu[SHA_DIGEST_LENGTH]; - unsigned char *cAB; + unsigned char *cAB = NULL; EVP_MD_CTX *ctxt = NULL; int longN; if ((A == NULL) || (B == NULL) || (N == NULL)) |