aboutsummaryrefslogtreecommitdiff
path: root/comms/qpage/files/libwrap_ident_patch-srvrsnpp.c
diff options
context:
space:
mode:
authorStefan Walter <stefan@FreeBSD.org>2008-10-24 10:14:05 +0000
committerStefan Walter <stefan@FreeBSD.org>2008-10-24 10:14:05 +0000
commitd96072f0de6641b564371191e3377a2721de31ec (patch)
treea9d69f6013c332819bff6c47258b5fd380961708 /comms/qpage/files/libwrap_ident_patch-srvrsnpp.c
parent21bceaaa75d80fdca48bb2f63c50f0a5284e5dd0 (diff)
downloadports-d96072f0de6641b564371191e3377a2721de31ec.tar.gz
ports-d96072f0de6641b564371191e3377a2721de31ec.zip
Notes
Diffstat (limited to 'comms/qpage/files/libwrap_ident_patch-srvrsnpp.c')
-rw-r--r--comms/qpage/files/libwrap_ident_patch-srvrsnpp.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/comms/qpage/files/libwrap_ident_patch-srvrsnpp.c b/comms/qpage/files/libwrap_ident_patch-srvrsnpp.c
new file mode 100644
index 000000000000..8cd51a09b2f7
--- /dev/null
+++ b/comms/qpage/files/libwrap_ident_patch-srvrsnpp.c
@@ -0,0 +1,16 @@
+--- srvrsnpp.c.orig 2008-10-20 10:30:57.539127452 -0400
++++ srvrsnpp.c 2008-10-20 10:35:43.096529509 -0400
+@@ -1066,7 +1066,12 @@
+
+ fromhost(&request);
+
+- ptr = eval_user(&request);
++ /*
++ ** If we aren't doing an ident request, don't ask
++ ** TCP Wrappers to do it either
++ */
++ if (IdentTimeout) ptr = eval_user(&request);
++ else ptr = NULL;
+
+ if (ptr && strcmp(ptr, STRING_UNKNOWN) != 0)
+ p->ident = strdup(ptr);