summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dnssec_sign.c1
-rw-r--r--dnssec_verify.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/dnssec_sign.c b/dnssec_sign.c
index 59ac6540..48bddf3f 100644
--- a/dnssec_sign.c
+++ b/dnssec_sign.c
@@ -499,6 +499,7 @@ ldns_sign_public_evp(ldns_buffer *to_sign,
}
} else {
#else
+ r = 0;
if(md_type != NULL) {
#endif
r = EVP_SignInit(ctx, md_type);
diff --git a/dnssec_verify.c b/dnssec_verify.c
index b430ceef..a8a04b39 100644
--- a/dnssec_verify.c
+++ b/dnssec_verify.c
@@ -2608,6 +2608,7 @@ ldns_verify_rrsig_evp_raw(const unsigned char *sig, size_t siglen,
}
} else {
#else
+ res = 0;
if(digest_type) {
#endif
EVP_VerifyInit(ctx, digest_type);