From 17c97150493a7c2b4858381866e1dbbe4c719c75 Mon Sep 17 00:00:00 2001 From: Mark Murray Date: Sun, 26 Nov 2000 09:58:18 +0000 Subject: [PATCH] Fix safety-net code. While technically a bug, I'm delighted to see that it has never (apparently) been invoked. Submitted by: ache --- sys/dev/random/hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/random/hash.c b/sys/dev/random/hash.c index fbd1163c0739..21c89e077da1 100644 --- a/sys/dev/random/hash.c +++ b/sys/dev/random/hash.c @@ -94,7 +94,7 @@ yarrow_encrypt_init(struct yarrowkey *context, void *data, size_t size) size_t count; count = size > KEYSIZE ? KEYSIZE : size; - BF_set_key(&context->key, size, data); + BF_set_key(&context->key, count, data); } /* Encrypt the supplied data using the key schedule preset in the context */