summaryrefslogtreecommitdiff
path: root/sbin/mount_portal/activate.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/mount_portal/activate.c')
-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 a3b1ed157ed..e7ee78da4d4 100644
--- a/sbin/mount_portal/activate.c
+++ b/sbin/mount_portal/activate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: activate.c,v 1.7 2008/03/13 01:49:52 deraadt Exp $ */
+/* $OpenBSD: activate.c,v 1.8 2008/03/15 16:19:02 deraadt Exp $ */
/* $NetBSD: activate.c,v 1.5 1995/04/23 10:33:18 cgd Exp $ */
/*
@@ -129,7 +129,7 @@ send_reply(int so, int fd, int error)
*/
if (fd >= 0) {
msg.msg_control = (caddr_t)&cmsgbuf.buf;
- msg.msg_controllen = sizeof(cmsgbuf.buf);
+ msg.msg_controllen = CMSG_LEN(sizeof(int));
cmsg = CMSG_FIRSTHDR(&msg);
cmsg->cmsg_len = CMSG_LEN(sizeof(int));
cmsg->cmsg_level = SOL_SOCKET;