diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2010-11-08 12:16:21 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2010-11-08 12:16:21 +0000 |
commit | 2f4343080056e3a68349526b89cf0045fe6c306d (patch) | |
tree | 5787f6dbed513e4d826633cdff4158e5da7ac2ce /sbin | |
parent | fe3e44aef06ed6712ef441f7d9d8c63a85cf4555 (diff) |
fixup number rounding; ok reyk
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/iked/crypto.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 * |