From 03e7db4ba49ea962c72ec70c86ecc5caf04e4f30 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Mon, 12 Jun 2000 07:07:14 +0000 Subject: [PATCH] hmacmd5_generate wasn't initializing a buffer --- lib/dns/sec/dst/hmac_link.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/dns/sec/dst/hmac_link.c b/lib/dns/sec/dst/hmac_link.c index 5156f97556..c9c269d7d9 100644 --- a/lib/dns/sec/dst/hmac_link.c +++ b/lib/dns/sec/dst/hmac_link.c @@ -19,7 +19,7 @@ /* * Principal Author: Brian Wellington - * $Id: hmac_link.c,v 1.36 2000/06/09 22:32:17 bwelling Exp $ + * $Id: hmac_link.c,v 1.37 2000/06/12 07:07:14 bwelling Exp $ */ #include @@ -165,6 +165,8 @@ hmacmd5_generate(dst_key_t *key, int unused, isc_entropy_t *ectx) { if (ret != ISC_R_SUCCESS) return (ret); + isc_buffer_init(&b, data, bytes); + isc_buffer_add(&b, bytes); ret = hmacmd5_fromdns(key, &b); memset(data, 0, HMAC_LEN);