diff options
author | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2007-09-15 11:00:52 +0000 |
---|---|---|
committer | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2007-09-15 11:00:52 +0000 |
commit | 21889d3b9f1fefa90d062cb9452f2115527197d4 (patch) | |
tree | 4f6cc847ed8b0cf6782b34dd2cf14395595e9bfe /sys | |
parent | bf46e6efa73f304c8964a3af5d3e115cfc162e56 (diff) |
fix error introduced by my previous commit:
"MALLOC(*swd, ...)" vs. "swd = malloc(..."
ok millert
Diffstat (limited to 'sys')
-rw-r--r-- | sys/crypto/cryptosoft.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |