From 6ac145533ea84d656668228ccfee86cf65dad5f9 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Mon, 6 Sep 1999 16:55:58 +0000 Subject: [PATCH] off by one error --- lib/dns/sec/dst/openssl_link.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/dns/sec/dst/openssl_link.c b/lib/dns/sec/dst/openssl_link.c index 4a9d8da755..c362f51039 100644 --- a/lib/dns/sec/dst/openssl_link.c +++ b/lib/dns/sec/dst/openssl_link.c @@ -19,7 +19,7 @@ /* * Principal Author: Brian Wellington - * $Id: openssl_link.c,v 1.5 1999/09/01 18:56:19 bwelling Exp $ + * $Id: openssl_link.c,v 1.6 1999/09/06 16:55:58 bwelling Exp $ */ #include @@ -339,7 +339,8 @@ dst_openssl_from_dns(dst_key_t *key, isc_buffer_t *data, isc_mem_t *mctx) { r.base += SHA_DIGEST_LENGTH; isc_buffer_remaining(data, &r); - key->key_id = dst_s_id_calc(r.base, SHA_DIGEST_LENGTH + 3 * p_bytes); + key->key_id = dst_s_id_calc(r.base, + 1 + SHA_DIGEST_LENGTH + 3 * p_bytes); key->key_size = p_bytes * 8; isc_buffer_forward(data, SHA_DIGEST_LENGTH + 3 * p_bytes);