diff options
author | 2007-08-07 09:45:24 +0000 | |
---|---|---|
committer | 2007-08-07 09:45:24 +0000 | |
commit | 64d2735a9d49caaebacb30b82822f43cdde4043b (patch) | |
tree | abbbd8a30e7595475d53840f0131caf9d2808adb | |
parent | regen (diff) | |
download | wireguard-openbsd-64d2735a9d49caaebacb30b82822f43cdde4043b.tar.xz wireguard-openbsd-64d2735a9d49caaebacb30b82822f43cdde4043b.zip |
do not leak sessions; ok hshoexer, tom, deraadt
-rw-r--r-- | sys/arch/i386/i386/via.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/via.c b/sys/arch/i386/i386/via.c index d33ea3bb516..9060e5aa67c 100644 --- a/sys/arch/i386/i386/via.c +++ b/sys/arch/i386/i386/via.c @@ -1,4 +1,4 @@ -/* $OpenBSD: via.c,v 1.10 2007/05/27 07:17:47 tedu Exp $ */ +/* $OpenBSD: via.c,v 1.11 2007/08/07 09:45:24 markus Exp $ */ /* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */ /*- @@ -188,6 +188,7 @@ viac3_crypto_newsession(u_int32_t *sidp, struct cryptoini *cri) cw0 = C3_CRYPT_CWLO_KEY256; break; default: + viac3_crypto_freesession(sesn); return (EINVAL); } cw0 |= C3_CRYPT_CWLO_ALG_AES | C3_CRYPT_CWLO_KEYGEN_SW | @@ -276,6 +277,7 @@ viac3_crypto_newsession(u_int32_t *sidp, struct cryptoini *cri) break; default: + viac3_crypto_freesession(sesn); return (EINVAL); } } |