summaryrefslogtreecommitdiffstats
path: root/sys/netipsec/keysock.c
diff options
context:
space:
mode:
authorbmilekic <bmilekic@FreeBSD.org>2002-12-19 22:58:27 +0000
committerbmilekic <bmilekic@FreeBSD.org>2002-12-19 22:58:27 +0000
commit514c635ee6d3ff47b542ec91a037e7a241c1357c (patch)
treefb78678839efbdec9c58873ff5e7df1cf42aa7f5 /sys/netipsec/keysock.c
parent13bc2a4ca63803cb5287e5acd86ed9b2e3238689 (diff)
downloadFreeBSD-src-514c635ee6d3ff47b542ec91a037e7a241c1357c.zip
FreeBSD-src-514c635ee6d3ff47b542ec91a037e7a241c1357c.tar.gz
o Untangle the confusion with the malloc flags {M_WAITOK, M_NOWAIT} and
the mbuf allocator flags {M_TRYWAIT, M_DONTWAIT}. o Fix a bpf_compat issue where malloc() was defined to just call bpf_alloc() and pass the 'canwait' flag(s) along. It's been changed to call bpf_alloc() but pass the corresponding M_TRYWAIT or M_DONTWAIT flag (and only one of those two). Submitted by: Hiten Pandya <hiten@unixdaemons.com> (hiten->commit_count++)
Diffstat (limited to 'sys/netipsec/keysock.c')
-rw-r--r--sys/netipsec/keysock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netipsec/keysock.c b/sys/netipsec/keysock.c
index 39f57e5..d61c15b 100644
--- a/sys/netipsec/keysock.c
+++ b/sys/netipsec/keysock.c
@@ -152,7 +152,7 @@ key_sendup0(rp, m, promisc)
if (promisc) {
struct sadb_msg *pmsg;
- M_PREPEND(m, sizeof(struct sadb_msg), M_NOWAIT);
+ M_PREPEND(m, sizeof(struct sadb_msg), M_DONTWAIT);
if (m && m->m_len < sizeof(struct sadb_msg))
m = m_pullup(m, sizeof(struct sadb_msg));
if (!m) {
OpenPOWER on IntegriCloud