From 19c057da2e9769bfc332edb79c262e7e61ac785c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Tue, 29 Feb 2000 22:37:27 +0000 Subject: [PATCH] Check BN_rand return value. "make update". --- TABLE | 17 +++++++++++++++++ crypto/dsa/dsa_key.c | 3 ++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/TABLE b/TABLE index 121d989acf..73176dd32b 100644 --- a/TABLE +++ b/TABLE @@ -1292,6 +1292,23 @@ $rc4_obj = asm/rx86-elf.o $rmd160_obj = asm/rm86-elf.o $rc5_obj = asm/r586-elf.o +*** linux-ia64 +$cc = gcc +$cflags = -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall +$unistd = +$thread_cflag = (unknown) +$lflags = +$bn_ops = SIXTY_FOUR_BIT_LONG +$bn_obj = +$des_obj = +$bf_obj = +$md5_obj = +$sha1_obj = +$cast_obj = +$rc4_obj = +$rmd160_obj = +$rc5_obj = + *** linux-mips $cc = gcc $cflags = -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall diff --git a/crypto/dsa/dsa_key.c b/crypto/dsa/dsa_key.c index ab7f38fc7c..5aef2d5fcf 100644 --- a/crypto/dsa/dsa_key.c +++ b/crypto/dsa/dsa_key.c @@ -84,7 +84,8 @@ int DSA_generate_key(DSA *dsa) i=BN_num_bits(dsa->q); for (;;) { - BN_rand(priv_key,i,1,0); + if (!BN_rand(priv_key,i,1,0)) + goto err; if (BN_cmp(priv_key,dsa->q) >= 0) BN_sub(priv_key,priv_key,dsa->q); if (!BN_is_zero(priv_key)) break; -- 2.25.1