From: Mark Wooding Date: Mon, 17 Apr 2017 22:31:11 +0000 (+0100) Subject: progs/cc-sig.c: Don't destroy an RSA context just after building it. X-Git-Tag: 2.3.1~6 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb/commitdiff_plain/cf270e75994dcc1366c70833c3443a192b04181e?ds=sidebyside progs/cc-sig.c: Don't destroy an RSA context just after building it. It causes an assertion failure later. Really embarrassing. --- diff --git a/progs/cc-sig.c b/progs/cc-sig.c index 35f17016..bbc23008 100644 --- a/progs/cc-sig.c +++ b/progs/cc-sig.c @@ -186,7 +186,6 @@ static sig *rsapss_siginit(key *k, void *kd, const gchash *hc) rs->p.cc = getmgf(k, hc); rs->p.ch = hc; rs->p.ssz = hc->hashsz; - rsa_privdestroy(&rs->rp); return (&rs->s); }