summaryrefslogtreecommitdiff
path: root/usr.sbin/ripd/ripe.c
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2016-08-02 16:05:33 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2016-08-02 16:05:33 +0000
commitec77ff2011cf4aeecc0b70204e91afb3b8f66576 (patch)
tree5d4d37272dcae6489205e008390d483580049b9a /usr.sbin/ripd/ripe.c
parent39ff793e8b1891351dd84fb58067935a24a8893f (diff)
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;