summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authortholo <tholo@openbsd.org>1996-03-14 07:58:29 +0000
committertholo <tholo@openbsd.org>1996-03-14 07:58:29 +0000
commit7112b3cdda4ba9d20cee13a3dc9cd490fff3050f (patch)
treef67eb17eea0834a329db9bcc5d5c5f8e32fd2bb5 /sys/netinet
parentNew pages for VM interface. (diff)
downloadwireguard-openbsd-7112b3cdda4ba9d20cee13a3dc9cd490fff3050f.tar.xz
wireguard-openbsd-7112b3cdda4ba9d20cee13a3dc9cd490fff3050f.zip
From Lite2; we should fail a malloc, not block waiting for memory to become
available in in_pcballoc()
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/in_pcb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c
index 1bb338ddff4..8f5cc701afa 100644
--- a/sys/netinet/in_pcb.c
+++ b/sys/netinet/in_pcb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in_pcb.c,v 1.2 1996/03/03 22:30:31 niklas Exp $ */
+/* $OpenBSD: in_pcb.c,v 1.3 1996/03/14 07:58:29 tholo Exp $ */
/* $NetBSD: in_pcb.c,v 1.25 1996/02/13 23:41:53 christos Exp $ */
/*
@@ -83,7 +83,7 @@ in_pcballoc(so, v)
register struct inpcb *inp;
int s;
- MALLOC(inp, struct inpcb *, sizeof(*inp), M_PCB, M_WAITOK);
+ MALLOC(inp, struct inpcb *, sizeof(*inp), M_PCB, M_NOWAIT);
if (inp == NULL)
return (ENOBUFS);
bzero((caddr_t)inp, sizeof(*inp));