Bug 1092

Summary: get_remote_hostname() potentially passing uninitialised buffer to debug
Product: Portable OpenSSH Reporter: David Leonard <David.Leonard>
Component: sshAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: minor    
Priority: P2    
Version: 4.2p1   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 1047    
Attachments:
Description Flags
relocate check_ip_options call. none

Description David Leonard 2005-09-26 15:15:23 AEST
get_remote_hostname() calls check_ip_options(..., ntop)
but, at that point, ntop is an uninitialised auto.
check_ip_options(, ipaddr) then calls logit("...%.100s..", ipaddr)
which will log some binary garbage.
Comment 1 Darren Tucker 2005-09-26 16:30:05 AEST
Created attachment 966 [details]
relocate check_ip_options call.

The obvious fix would seem to be a relocation of the check_ip_options call.
Comment 2 Darren Tucker 2005-10-03 17:55:06 AEST
Patch applied, thanks for the report.
Comment 3 Darren Tucker 2006-10-07 11:42:20 AEST
Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4.