diff options
author | Geoff Thorpe <geoff@openssl.org> | 2003-10-29 21:47:49 +0100 |
---|---|---|
committer | Geoff Thorpe <geoff@openssl.org> | 2003-10-29 21:47:49 +0100 |
commit | 31166ec8f33f1d1af25901be4411d47ef15ff340 (patch) | |
tree | 736dc02aad43cb6ec9740c40419af02a3534307a /crypto/bn/bn_recp.c | |
parent | A general spring-cleaning (in autumn) to fix up signed/unsigned warnings. (diff) | |
download | openssl-31166ec8f33f1d1af25901be4411d47ef15ff340.tar.xz openssl-31166ec8f33f1d1af25901be4411d47ef15ff340.zip |
Some provisional bignum debugging has begun to detect inconsistent BIGNUM
structures being passed in to or out of API functions, and this corrects a
couple of cases found so far.
Also, lop off a couple of bytes of white-space.
Diffstat (limited to 'crypto/bn/bn_recp.c')
-rw-r--r-- | crypto/bn/bn_recp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/bn/bn_recp.c b/crypto/bn/bn_recp.c index ef5fdd4708..22cbcfc49b 100644 --- a/crypto/bn/bn_recp.c +++ b/crypto/bn/bn_recp.c @@ -203,6 +203,8 @@ int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, ret=1; err: BN_CTX_end(ctx); + if(dv) bn_fix_top(dv); + if(rem) bn_fix_top(rem); return(ret); } |