diff options
author | 2016-07-07 11:53:12 +0000 | |
---|---|---|
committer | 2016-07-07 11:53:12 +0000 | |
commit | 546813aa543b70ea35440e5411e90cf9bb704dcd (patch) | |
tree | d10ff96312a069371befc63b53cef18defeee6f6 /lib/libcrypto/rsa/rsa_crpt.c | |
parent | biff, mesg, vi: only consider ACCESSPERMS for setting tty mode. (diff) | |
download | wireguard-openbsd-546813aa543b70ea35440e5411e90cf9bb704dcd.tar.xz wireguard-openbsd-546813aa543b70ea35440e5411e90cf9bb704dcd.zip |
call BN_init on temporaries to avoid use-before-set warnings
ok beck@
Diffstat (limited to 'lib/libcrypto/rsa/rsa_crpt.c')
-rw-r--r-- | lib/libcrypto/rsa/rsa_crpt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libcrypto/rsa/rsa_crpt.c b/lib/libcrypto/rsa/rsa_crpt.c index b50e4a4a6fc..ccb677c12b0 100644 --- a/lib/libcrypto/rsa/rsa_crpt.c +++ b/lib/libcrypto/rsa/rsa_crpt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_crpt.c,v 1.15 2016/06/30 02:02:06 bcook Exp $ */ +/* $OpenBSD: rsa_crpt.c,v 1.16 2016/07/07 11:53:12 bcook Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -192,6 +192,7 @@ RSA_setup_blinding(RSA *rsa, BN_CTX *in_ctx) } else e = rsa->e; + BN_init(&n); BN_with_flags(&n, rsa->n, BN_FLG_CONSTTIME); ret = BN_BLINDING_create_param(NULL, e, &n, ctx, rsa->meth->bn_mod_exp, |