From fb425165411d2dfee76d17e38496fd543b121507 Mon Sep 17 00:00:00 2001 From: Julian Elischer Date: Wed, 5 Feb 1997 19:50:04 +0000 Subject: [PATCH] The "-a" option for inetd specifies a specific IP address for the server to bind to. This works until you send it a SIGHUP with a new service defined ... the new service is bound to INADDR_ANY. This patch fixes this bug (in both RELENG_2_2 and -current). This is a 2.2 candidate..(i.e. pure bug fix) Submitted by: Archie Cobbs (archie@whistle.com) --- usr.sbin/inetd/inetd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index 97070626885f..e8c7de259bd2 100644 --- a/usr.sbin/inetd/inetd.c +++ b/usr.sbin/inetd/inetd.c @@ -712,6 +712,7 @@ config(signo) } if (sp->s_port != sep->se_ctrladdr.sin_port) { sep->se_ctrladdr.sin_family = AF_INET; + sep->se_ctrladdr.sin_addr = bind_address; sep->se_ctrladdr.sin_port = sp->s_port; if (sep->se_fd >= 0) close_sep(sep);