Bug 1379

Summary: memory leak in process_cmdline()
Product: Portable OpenSSH Reporter: Jan Pechanec <Jan.Pechanec>
Component: sshAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: normal CC: djm
Priority: P3    
Version: 4.7p1   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 1353    
Attachments:
Description Flags
fix for the bug
none
fixed version of the patch. The previous one wasn't complete. none

Description Jan Pechanec 2007-10-23 03:53:55 AEST
Created attachment 1366 [details]
fix for the bug

if anything goes wrong and Fwd was filled then listen_host/connect_host are not freed.

patch attached.
Comment 1 Jan Pechanec 2007-10-24 00:32:23 AEST
Created attachment 1369 [details]
fixed version of the patch. The previous one wasn't complete.

in the first patch, I forgot to memset() local 'fwd' variable before checking listen_host and connect_host for non-NULL value.
Comment 2 Damien Miller 2007-11-03 11:39:43 AEDT
fix applied - thanks
Comment 3 Damien Miller 2008-03-31 15:22:11 AEDT
Fix shipped in 4.9/4.9p1 release.