Bugzilla – Attachment 279 Details for
Bug 549
Login Delay / Remove unwanted reverse map check
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Disable reverse lookups in canohost.c when utmp_len == 0
openssh-revlookup.patch (text/plain), 1.49 KB, created by
Darren Tucker
on 2003-05-03 09:16:02 AEST
(
hide
)
Description:
Disable reverse lookups in canohost.c when utmp_len == 0
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2003-05-03 09:16:02 AEST
Size:
1.49 KB
patch
obsolete
>Index: canohost.c >=================================================================== >RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/canohost.c,v >retrieving revision 1.34 >diff -u -r1.34 canohost.c >--- canohost.c 9 Apr 2003 10:59:48 -0000 1.34 >+++ canohost.c 2 May 2003 23:14:41 -0000 >@@ -19,6 +19,8 @@ > #include "log.h" > #include "canohost.h" > >+int do_reverse_lookups = 1; >+ > static void check_ip_options(int, char *); > > /* >@@ -77,7 +79,8 @@ > > debug3("Trying to reverse map address %.100s.", ntop); > /* Map the IP address to a host name. */ >- if (getnameinfo((struct sockaddr *)&from, fromlen, name, sizeof(name), >+ if (do_reverse_lookups && >+ getnameinfo((struct sockaddr *)&from, fromlen, name, sizeof(name), > NULL, 0, NI_NAMEREQD) != 0) { > /* Host name not found. Use ip address. */ > #if 0 >Index: sshd.c >=================================================================== >RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/sshd.c,v >retrieving revision 1.237 >diff -u -r1.237 sshd.c >--- sshd.c 9 Apr 2003 10:59:50 -0000 1.237 >+++ sshd.c 2 May 2003 23:15:58 -0000 >@@ -804,6 +804,7 @@ > { > extern char *optarg; > extern int optind; >+ extern int do_reverse_lookups; > int opt, sock_in = 0, sock_out = 0, newsock, j, i, fdsetsz, on = 1; > pid_t pid; > socklen_t fromlen; >@@ -928,6 +929,8 @@ > fprintf(stderr, "Invalid utmp length.\n"); > exit(1); > } >+ if (utmp_len == 0) >+ do_reverse_lookups = 0; > break; > case 'o': > if (process_server_config_line(&options, optarg,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 549
:
279