mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 10:19:59 -04:00
3521. [bug] Address memory leak in opensslecdsa_link.c. [RT #32249]
(cherry picked from commit aababae795)
This commit is contained in:
parent
4aa0f69228
commit
b304c9df6b
2 changed files with 6 additions and 0 deletions
2
CHANGES
2
CHANGES
|
|
@ -1,3 +1,5 @@
|
|||
3521. [bug] Address memory leak in opensslecdsa_link.c. [RT #32249]
|
||||
|
||||
3520. [bug] 'mctx' was not being referenced counted in some places
|
||||
where it should have been. [RT #32794]
|
||||
|
||||
|
|
|
|||
|
|
@ -207,8 +207,12 @@ opensslecdsa_verify(dst_context_t *dctx, const isc_region_t *sig) {
|
|||
ecdsasig = ECDSA_SIG_new();
|
||||
if (ecdsasig == NULL)
|
||||
DST_RET (ISC_R_NOMEMORY);
|
||||
if (ecdsasig->r != NULL)
|
||||
BN_free(ecdsasig->r);
|
||||
ecdsasig->r = BN_bin2bn(cp, siglen / 2, NULL);
|
||||
cp += siglen / 2;
|
||||
if (ecdsasig->s != NULL)
|
||||
BN_free(ecdsasig->s);
|
||||
ecdsasig->s = BN_bin2bn(cp, siglen / 2, NULL);
|
||||
/* cp += siglen / 2; */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue