From b76a252ade84fdb1e2d468e819798dc2301ae015 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Wed, 27 Oct 1999 16:52:55 +0000 Subject: [PATCH] fix yesterday's hmac context fix --- lib/dns/sec/dst/hmac_link.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/dns/sec/dst/hmac_link.c b/lib/dns/sec/dst/hmac_link.c index 4fff9b7f2b..5a6108edd0 100644 --- a/lib/dns/sec/dst/hmac_link.c +++ b/lib/dns/sec/dst/hmac_link.c @@ -17,7 +17,7 @@ /* * Principal Author: Brian Wellington - * $Id: hmac_link.c,v 1.13 1999/10/26 19:43:25 bwelling Exp $ + * $Id: hmac_link.c,v 1.14 1999/10/27 16:52:55 bwelling Exp $ */ #include @@ -130,7 +130,7 @@ dst_hmacmd5_sign(const unsigned int mode, dst_key_t *key, void **context, isc_result_t ret; void *ctx; - if (!(mode & DST_SIGMODE_ALL)) + if ((mode & DST_SIGMODE_ALL) != DST_SIGMODE_ALL) REQUIRE(context != NULL); else context = &ctx; @@ -195,7 +195,7 @@ dst_hmacmd5_verify(const unsigned int mode, dst_key_t *key, void **context, isc_result_t ret; void *ctx; - if (!(mode & DST_SIGMODE_ALL)) + if ((mode & DST_SIGMODE_ALL) != DST_SIGMODE_ALL) REQUIRE(context != NULL); else context = &ctx;