[Bug 2685] Case sensitive hostname matching

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri Mar 10 14:59:13 AEDT 2017


https://bugzilla.mindrot.org/show_bug.cgi?id=2685

Damien Miller <djm at mindrot.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #2951|0                           |1
        is obsolete|                            |
                 CC|                            |djm at mindrot.org,
                   |                            |dtucker at zip.com.au
           Assignee|unassigned-bugs at mindrot.org |djm at mindrot.org
   Attachment #2960|                            |ok?(dtucker at zip.com.au)
              Flags|                            |

--- Comment #4 from Damien Miller <djm at mindrot.org> ---
Created attachment 2960
  --> https://bugzilla.mindrot.org/attachment.cgi?id=2960&action=edit
make hostname matching really case-insensitive

I think this patch is a bit simpler and more clearly makes
match_hostname() case insensitive. That was the intent to begin with
AFAIK, since it calls match_pattern_list() with the dolower argument
set. Unfortunately that only applies to the pattern and not the name
being matched.

I've checked the existing callers to verify that they will be tolerant
of this change, esp. that we weren't using match_hostname() to compare
a hashed hostname. All looks fine.

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list