From 59b5e172f9fed2d27202168630550e21ef995105 Mon Sep 17 00:00:00 2001 From: CryptoManiac Date: Sat, 27 Nov 2021 14:55:05 +0300 Subject: [PATCH] Fix copy constructor --- src/bignum.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/bignum.h b/src/bignum.h index f1ec8d4..f37d7ed 100644 --- a/src/bignum.h +++ b/src/bignum.h @@ -69,6 +69,7 @@ public: CBigNum& operator=(const CBigNum& b) { + bn = BN_new(); if (!BN_copy(bn, b.bn)) throw bignum_error("CBigNum::operator= : BN_copy failed"); return (*this); -- 1.7.1