summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ripd/ripe.c
diff options
context:
space:
mode:
authorjca <jca@openbsd.org>2016-08-02 16:05:32 +0000
committerjca <jca@openbsd.org>2016-08-02 16:05:32 +0000
commit3dabc7963b54117b3500aa119ed08250b19e2639 (patch)
tree962bd6a228ce6b283701a5c001d79abca62fd928 /usr.sbin/ripd/ripe.c
parentcapitalize a question like all the others (diff)
downloadwireguard-openbsd-3dabc7963b54117b3500aa119ed08250b19e2639.tar.xz
wireguard-openbsd-3dabc7963b54117b3500aa119ed08250b19e2639.zip
Allow specifying an alternate socket path.
This allows one to run multiple ripd instances, for example to serve multiple rdomains. Diff from Nima GHOTBI, ok claudio@ florian@ benno@
Diffstat (limited to 'usr.sbin/ripd/ripe.c')
-rw-r--r--usr.sbin/ripd/ripe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ripd/ripe.c b/usr.sbin/ripd/ripe.c
index 48d6aae1f26..36d91c435f0 100644
--- a/usr.sbin/ripd/ripe.c
+++ b/usr.sbin/ripd/ripe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ripe.c,v 1.19 2015/12/05 13:13:47 claudio Exp $ */
+/* $OpenBSD: ripe.c,v 1.20 2016/08/02 16:05:32 jca Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
@@ -85,7 +85,7 @@ ripe(struct ripd_conf *xconf, int pipe_parent2ripe[2], int pipe_ripe2rde[2],
}
/* create ripd control socket outside chroot */
- if (control_init() == -1)
+ if (control_init(xconf->csock) == -1)
fatalx("control socket setup failed");
addr.sin_family = AF_INET;