From adb02752738f50de1e1ca94ddd56ab873379aae0 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 13 Nov 2001 17:45:47 +0000 Subject: garbage in my last commit --- sys/crypto/cryptodev.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'sys') diff --git a/sys/crypto/cryptodev.c b/sys/crypto/cryptodev.c index 8b0c606214c..e531a1ecaa9 100644 --- a/sys/crypto/cryptodev.c +++ b/sys/crypto/cryptodev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cryptodev.c,v 1.27 2001/11/09 03:11:38 deraadt Exp $ */ +/* $OpenBSD: cryptodev.c,v 1.28 2001/11/13 17:45:46 deraadt Exp $ */ /* * Copyright (c) 2001 Theo de Raadt @@ -221,10 +221,8 @@ cryptof_ioctl(fp, cmd, data, p) MALLOC(crie.cri_key, u_int8_t *, crie.cri_klen / 8, M_XDATA, M_WAITOK); if ((error = copyin(sop->key, crie.cri_key, - crie.cri_klen / 8))) { - error = EINVAL; + crie.cri_klen / 8))) goto bail; - } if (thash) crie.cri_next = &cria; } @@ -240,10 +238,8 @@ cryptof_ioctl(fp, cmd, data, p) MALLOC(cria.cri_key, u_int8_t *, cria.cri_klen / 8, M_XDATA, M_WAITOK); if ((error = copyin(sop->mackey, cria.cri_key, - cria.cri_klen / 8))) { - error = EINVAL; + cria.cri_klen / 8))) goto bail; - } } error = crypto_newsession(&sid, (txform ? &crie : &cria), 1); -- cgit v1.2.3