summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/uipc_socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c
index d4d81d8..d434d34 100644
--- a/sys/kern/uipc_socket.c
+++ b/sys/kern/uipc_socket.c
@@ -171,8 +171,8 @@ socreate(dom, aso, type, proto, cred, td)
if (prp->pr_type != type)
return (EPROTOTYPE);
- so = soalloc(td != 0);
- if (so == 0)
+ so = soalloc(M_NOWAIT);
+ if (so == NULL)
return (ENOBUFS);
SOCK_LOCK(so);
OpenPOWER on IntegriCloud