aboutsummaryrefslogtreecommitdiff
path: root/crypto/bn/bn_prime.c
diff options
context:
space:
mode:
authorPaul Yang <paulyang.inf@gmail.com>2017-06-25 11:49:19 +0800
committerBernd Edlinger <bernd.edlinger@hotmail.de>2017-06-26 14:59:30 +0200
commite8e5597606d10fcb5620399dd751be4ecf3dcd1d (patch)
treeadbda387f3bba5eff6c0d74f45afc24f9472791c /crypto/bn/bn_prime.c
parent6544a91cefe817156461e57a4538c3fe7f621075 (diff)
downloadopenssl-e8e5597606d10fcb5620399dd751be4ecf3dcd1d.zip
openssl-e8e5597606d10fcb5620399dd751be4ecf3dcd1d.tar.gz
openssl-e8e5597606d10fcb5620399dd751be4ecf3dcd1d.tar.bz2
Fix inaccurate comments in bn_prime.c
As well as a coding style nit is fixed. Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de> (Merged from https://github.com/openssl/openssl/pull/3763)
Diffstat (limited to 'crypto/bn/bn_prime.c')
-rw-r--r--crypto/bn/bn_prime.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/bn/bn_prime.c b/crypto/bn/bn_prime.c
index 9b12dd2..b74699b 100644
--- a/crypto/bn/bn_prime.c
+++ b/crypto/bn/bn_prime.c
@@ -1,7 +1,5 @@
/*
- * WARNING: do not edit!
- * Generated by crypto/bn/bn_prime.pl
- * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@ -80,7 +78,7 @@ int BN_generate_prime_ex(BIGNUM *ret, int bits, int safe,
goto err;
BN_CTX_start(ctx);
t = BN_CTX_get(ctx);
- if (!t)
+ if (t == NULL)
goto err;
loop:
/* make a random number and set the top and bottom bits */