summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcsapuntz <csapuntz@openbsd.org>1998-08-06 22:15:29 +0000
committercsapuntz <csapuntz@openbsd.org>1998-08-06 22:15:29 +0000
commitc6d0dc52cd0e693dd68b2d220d764a6cc627817b (patch)
treeb663c8a22f0824755e1930b090bad892f2af503d
parentDon't pass vclean related stuff to the lower vnode. It makes it very unhappy. (diff)
downloadwireguard-openbsd-c6d0dc52cd0e693dd68b2d220d764a6cc627817b.tar.xz
wireguard-openbsd-c6d0dc52cd0e693dd68b2d220d764a6cc627817b.zip
Can't use MSG_EOR with a stream socket.
Thanks to m4@m.nts.umn.edu (Marshall M. Midden)
-rw-r--r--sbin/mount_portal/activate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/mount_portal/activate.c b/sbin/mount_portal/activate.c
index 4a6960b8115..fd473fd2da9 100644
--- a/sbin/mount_portal/activate.c
+++ b/sbin/mount_portal/activate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: activate.c,v 1.3 1997/03/23 03:52:13 millert Exp $ */
+/* $OpenBSD: activate.c,v 1.4 1998/08/06 22:15:29 csapuntz Exp $ */
/* $NetBSD: activate.c,v 1.5 1995/04/23 10:33:18 cgd Exp $ */
/*
@@ -154,7 +154,7 @@ send_reply(so, fd, error)
/*
* Send to kernel...
*/
- if ((n = sendmsg(so, &msg, MSG_EOR)) < 0)
+ if ((n = sendmsg(so, &msg, 0)) < 0)
syslog(LOG_ERR, "send: %m");
#ifdef DEBUG
(void)fprintf(stderr, "sent %d bytes\n", n);