aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/inetd/inetd.c
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2007-04-29 19:24:11 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2007-04-29 19:24:11 +0000
commit9711f15b2ec3d60d921f7b836d01647d649ecf15 (patch)
tree43c6b6184bbb2693616fa4a9ab3dd2cf3ce200a4 /usr.sbin/inetd/inetd.c
parent2e79211159b27f3fae980bf82417411cbbd16547 (diff)
downloadsrc-9711f15b2ec3d60d921f7b836d01647d649ecf15.tar.gz
src-9711f15b2ec3d60d921f7b836d01647d649ecf15.zip
MFC: Man page improvements and don't put unix domain sockets into the
per-ip limits code.
Notes
Notes: svn path=/stable/6/; revision=169099
Diffstat (limited to 'usr.sbin/inetd/inetd.c')
-rw-r--r--usr.sbin/inetd/inetd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c
index e5f7365eca11..8095e5e45037 100644
--- a/usr.sbin/inetd/inetd.c
+++ b/usr.sbin/inetd/inetd.c
@@ -2228,6 +2228,7 @@ cpmip(const struct servtab *sep, int ctrl)
*/
if (sep->se_maxcpm > 0 &&
+ (sep->se_family == AF_INET || sep->se_family == AF_INET6) &&
getpeername(ctrl, (struct sockaddr *)&rss, &rssLen) == 0 ) {
time_t t = time(NULL);
int hv = 0xABC3D20F;