summaryrefslogtreecommitdiffstats
path: root/usr.sbin/npppctl
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2017-01-21 11:32:04 +0000
committerguenther <guenther@openbsd.org>2017-01-21 11:32:04 +0000
commitda77251e4b83a2abd44b652cb9d87e32457843cf (patch)
treebe25696c2a919bf5f76fc45a032e91ed813b7ef0 /usr.sbin/npppctl
parentStop calling out to sudo/doas to kill processes. Reliance on system (diff)
downloadwireguard-openbsd-da77251e4b83a2abd44b652cb9d87e32457843cf.tar.xz
wireguard-openbsd-da77251e4b83a2abd44b652cb9d87e32457843cf.zip
The POSIX APIs that that sockaddrs all ignore the s*_len field in the
incoming socket, so userspace doesn't need to set it unless it has its own reasons for tracking the size along with the sockaddr. ok phessler@ deraadt@ florian@
Diffstat (limited to 'usr.sbin/npppctl')
-rw-r--r--usr.sbin/npppctl/npppctl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/npppctl/npppctl.c b/usr.sbin/npppctl/npppctl.c
index ef6aaacf058..47edd69a801 100644
--- a/usr.sbin/npppctl/npppctl.c
+++ b/usr.sbin/npppctl/npppctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: npppctl.c,v 1.6 2015/12/05 13:19:32 claudio Exp $ */
+/* $OpenBSD: npppctl.c,v 1.7 2017/01/21 11:32:04 guenther Exp $ */
/*
* Copyright (c) 2012 Internet Initiative Japan Inc.
@@ -106,7 +106,6 @@ main(int argc, char *argv[])
err(EXIT_FAILURE, "socket");
memset(&sun, 0, sizeof(sun));
sun.sun_family = AF_UNIX;
- sun.sun_len = sizeof(sun);
strlcpy(sun.sun_path, npppd_ctlpath, sizeof(sun.sun_path));
if (connect(ctlsock, (struct sockaddr *)&sun, sizeof(sun)) < 0)
err(EXIT_FAILURE, "connect");