From 2f4343080056e3a68349526b89cf0045fe6c306d Mon Sep 17 00:00:00 2001 From: Mike Belopuhov Date: Mon, 8 Nov 2010 12:16:21 +0000 Subject: fixup number rounding; ok reyk --- sbin/iked/crypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin') diff --git a/sbin/iked/crypto.c b/sbin/iked/crypto.c index 83d85934424..0644f793cef 100644 --- a/sbin/iked/crypto.c +++ b/sbin/iked/crypto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crypto.c,v 1.3 2010/09/30 10:34:56 mikeb Exp $ */ +/* $OpenBSD: crypto.c,v 1.4 2010/11/08 12:16:20 mikeb Exp $ */ /* $vantronix: crypto.c,v 1.18 2010/05/28 15:34:35 reyk Exp $ */ /* @@ -431,7 +431,7 @@ cipher_ivlength(struct iked_cipher *encr) size_t cipher_outlength(struct iked_cipher *encr, size_t inlen) { - return (inlen + inlen % encr->encr_length); + return (roundup(inlen, encr->encr_length)); } struct iked_dsa * -- cgit v1.2.3