summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bn/bn_sqrt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bn/bn_sqrt.c')
-rw-r--r--src/lib/libcrypto/bn/bn_sqrt.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/libcrypto/bn/bn_sqrt.c b/src/lib/libcrypto/bn/bn_sqrt.c
index d9ab545496..e964c578e3 100644
--- a/src/lib/libcrypto/bn/bn_sqrt.c
+++ b/src/lib/libcrypto/bn/bn_sqrt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_sqrt.c,v 1.12 2022/11/19 12:25:23 tb Exp $ */ 1/* $OpenBSD: bn_sqrt.c,v 1.13 2022/11/26 13:56:33 jsing Exp $ */
2/* Written by Lenka Fibikova <fibikova@exp-math.uni-essen.de> 2/* Written by Lenka Fibikova <fibikova@exp-math.uni-essen.de>
3 * and Bodo Moeller for the OpenSSL project. */ 3 * and Bodo Moeller for the OpenSSL project. */
4/* ==================================================================== 4/* ====================================================================
@@ -87,7 +87,6 @@ BN_mod_sqrt(BIGNUM *in, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
87 BN_free(ret); 87 BN_free(ret);
88 return NULL; 88 return NULL;
89 } 89 }
90 bn_check_top(ret);
91 return ret; 90 return ret;
92 } 91 }
93 92
@@ -105,7 +104,6 @@ BN_mod_sqrt(BIGNUM *in, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
105 BN_free(ret); 104 BN_free(ret);
106 return NULL; 105 return NULL;
107 } 106 }
108 bn_check_top(ret);
109 return ret; 107 return ret;
110 } 108 }
111 109
@@ -407,6 +405,5 @@ end:
407 ret = NULL; 405 ret = NULL;
408 } 406 }
409 BN_CTX_end(ctx); 407 BN_CTX_end(ctx);
410 bn_check_top(ret);
411 return ret; 408 return ret;
412} 409}