summaryrefslogtreecommitdiff
path: root/dnssec.c
diff options
context:
space:
mode:
Diffstat (limited to 'dnssec.c')
-rw-r--r--dnssec.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/dnssec.c b/dnssec.c
index fbaa518a8cb0..0a7beb4ebfd4 100644
--- a/dnssec.c
+++ b/dnssec.c
@@ -959,7 +959,7 @@ ldns_create_nsec(ldns_rdf *cur_owner, ldns_rdf *next_owner, ldns_rr_list *rrs)
{
/* we do not do any check here - garbage in, garbage out */
- /* the the start and end names - get the type from the
+ /* the start and end names - get the type from the
* before rrlist */
/* inefficient, just give it a name, a next name, and a list of rrs */
@@ -1836,8 +1836,10 @@ ldns_convert_dsa_rrsig_rdf2asn1(ldns_buffer *target_buffer,
return LDNS_STATUS_MEM_ERR;
}
# ifdef HAVE_DSA_SIG_SET0
- if (! DSA_SIG_set0(dsasig, R, S))
- return LDNS_STATUS_SSL_ERR;
+ if (! DSA_SIG_set0(dsasig, R, S)) {
+ DSA_SIG_free(dsasig);
+ return LDNS_STATUS_SSL_ERR;
+ }
# else
dsasig->r = R;
dsasig->s = S;