summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-09-27 17:28:35 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-09-27 17:28:35 +0000
commit0717e40d9df2896c5fc24b7fba3c0fbbdb9c660e (patch)
treeca4f88e14d253408bbf724677ba1e0f48a63fa82
parent59e777c2426b9b2c8e9672c54becb49647d51d22 (diff)
a pool_get() assuming that PR_NOWAIT is 0 (not anymore!); run into by naddy
-rw-r--r--sys/net/pfkeyv2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pfkeyv2.c b/sys/net/pfkeyv2.c
index 19568d3be13..9827f5d9409 100644
--- a/sys/net/pfkeyv2.c
+++ b/sys/net/pfkeyv2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfkeyv2.c,v 1.121 2010/07/09 16:58:06 reyk Exp $ */
+/* $OpenBSD: pfkeyv2.c,v 1.122 2010/09/27 17:28:34 deraadt Exp $ */
/*
* @(#)COPYRIGHT 1.1 (NRL) 17 January 1995
@@ -1616,7 +1616,7 @@ pfkeyv2_send(struct socket *socket, void *message, int len)
}
/* Allocate policy entry */
- ipo = pool_get(&ipsec_policy_pool, 0);
+ ipo = pool_get(&ipsec_policy_pool, PR_NOWAIT);
if (ipo == NULL) {
splx(s);
rval = ENOMEM;