summaryrefslogtreecommitdiffstats
path: root/crypto/srp
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2015-12-07 20:37:08 +0100
committerRichard Levitte <levitte@openssl.org>2015-12-07 20:37:08 +0100
commit39d5193201cd0d73afebbd8c08f641b541c02b77 (patch)
tree01e63818557aa839978fa56ed164f3286c733cd2 /crypto/srp
parentb91dd150d2b9b5ddca37722e7f52ea59ba7f80da (diff)
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/srp/srp_lib.c b/crypto/srp/srp_lib.c
index 0a073b61e0..4b0ae0d198 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))