Bugzilla – Attachment 1150 Details for
Bug 1200
sshd does not strip trailing dot from client hostname with HostbasedUsesNameFromPacketOnly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
p (text/plain), 864 bytes, created by
Richard E. Silverman
on 2006-06-24 02:48:14 AEST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Richard E. Silverman
Created:
2006-06-24 02:48:14 AEST
Size:
864 bytes
patch
obsolete
>--- openssh-krb5-3.8.1p1/auth2-hostbased.c 2004-01-21 00:02:50.000000000 +0000 >+++ fixed/auth2-hostbased.c 2006-06-23 16:07:32.000000000 +0000 >@@ -142,15 +142,16 @@ > debug2("userauth_hostbased: chost %s resolvedname %s ipaddr %s", > chost, resolvedname, ipaddr); > >+ if (((len = strlen(chost)) > 0) && chost[len - 1] == '.') { >+ debug2("stripping trailing dot from chost %s", chost); >+ chost[len - 1] = '\0'; >+ } >+ > if (options.hostbased_uses_name_from_packet_only) { > if (auth_rhosts2(pw, cuser, chost, chost) == 0) > return 0; > lookup = chost; > } else { >- if (((len = strlen(chost)) > 0) && chost[len - 1] == '.') { >- debug2("stripping trailing dot from chost %s", chost); >- chost[len - 1] = '\0'; >- } > if (strcasecmp(resolvedname, chost) != 0) > logit("userauth_hostbased mismatch: " > "client sends %s, but we resolve %s to %s",
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 1200
: 1150