diff options
author | julian <julian@FreeBSD.org> | 1997-02-05 19:50:04 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1997-02-05 19:50:04 +0000 |
commit | f061fa28f5ac3f93d633c36e904431dd425e25ba (patch) | |
tree | 600991afecd7b10c95d9d73e31bec20277bf2587 /usr.sbin/inetd | |
parent | 984b53f1840f31611a97cc8389b251aa7c1a900e (diff) | |
download | FreeBSD-src-f061fa28f5ac3f93d633c36e904431dd425e25ba.zip FreeBSD-src-f061fa28f5ac3f93d633c36e904431dd425e25ba.tar.gz |
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)
Diffstat (limited to 'usr.sbin/inetd')
-rw-r--r-- | usr.sbin/inetd/inetd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index 9707062..e8c7de2 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); |