From 21889d3b9f1fefa90d062cb9452f2115527197d4 Mon Sep 17 00:00:00 2001 From: Hans-Joerg Hoexer Date: Sat, 15 Sep 2007 11:00:52 +0000 Subject: fix error introduced by my previous commit: "MALLOC(*swd, ...)" vs. "swd = malloc(..." ok millert --- sys/crypto/cryptosoft.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/crypto/cryptosoft.c b/sys/crypto/cryptosoft.c index bf7313d792a..7510096cd2e 100644 --- a/sys/crypto/cryptosoft.c +++ b/sys/crypto/cryptosoft.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cryptosoft.c,v 1.48 2007/09/13 21:26:41 hshoexer Exp $ */ +/* $OpenBSD: cryptosoft.c,v 1.49 2007/09/15 11:00:51 hshoexer Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu) @@ -578,7 +578,7 @@ swcr_newsession(u_int32_t *sid, struct cryptoini *cri) *sid = i; while (cri) { - swd = malloc(sizeof(struct swcr_data), M_CRYPTO_DATA, + *swd = malloc(sizeof(struct swcr_data), M_CRYPTO_DATA, M_NOWAIT | M_ZERO); if (*swd == NULL) { swcr_freesession(i); -- cgit v1.2.3