projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix a ** 0 mod 1 = 0 for real this time.
[oweals/openssl.git]
/
crypto
/
bn
/
bn_sqrt.c
diff --git
a/crypto/bn/bn_sqrt.c
b/crypto/bn/bn_sqrt.c
index 232af99a216d853552d8260dcaf9f02908ad6aa5..ec18641150ae5190008809332a2ef2a4a405edce 100644
(file)
--- a/
crypto/bn/bn_sqrt.c
+++ b/
crypto/bn/bn_sqrt.c
@@
-57,7
+57,7
@@
*
*/
*
*/
-#include "cryptlib.h"
+#include "
internal/
cryptlib.h"
#include "bn_lcl.h"
BIGNUM *BN_mod_sqrt(BIGNUM *in, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
#include "bn_lcl.h"
BIGNUM *BN_mod_sqrt(BIGNUM *in, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
@@
-398,9
+398,8
@@
BIGNUM *BN_mod_sqrt(BIGNUM *in, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
end:
if (err) {
end:
if (err) {
- if (ret !=
NULL && ret != in) {
+ if (ret !=
in)
BN_clear_free(ret);
BN_clear_free(ret);
- }
ret = NULL;
}
BN_CTX_end(ctx);
ret = NULL;
}
BN_CTX_end(ctx);