Subject: bin/30198: scp(1) from OpenSSH 4.0 doesn't work when Host has LocalForward defined (maybe others)
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: netbsd-bugs
Date: 05/11/2005 13:56:00
>Number:         30198
>Category:       bin
>Synopsis:       scp(1) from OpenSSH 4.0 doesn't work when Host has LocalForward defined (maybe others)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 11 13:56:00 +0000 2005
>Originator:     Lubomir Sedlacik
>Release:        NetBSD 3.99.3
>Environment:
System: NetBSD 3.99.3
Architecture: i386
Machine: i386
OpenSSH: OpenSSH_4.0 NetBSD_Secure_Shell-20050423, OpenSSL 0.9.7g-fips 11 Apr 2005
>Description:
scp(1) from OpenSSH 4.0 fails with:

  xfree: NULL pointer given as argument
  lost connection

when Host definition in ~/.ssh/config includes LocalForward (possibly others)

i noticed today after upgrading yesterday to recent -current, previous
versions (3.x) worked fine.

>How-To-Repeat:
test case:

- create ~/.ssh/config with the following content:

 Host test
  HostName your.host.domain
  LocalForward 10000 localhost:10000

- run scp command:

 scp some.file test:

- see it failing:

 xfree: NULL pointer given as argument
 lost connection

>Fix:
n/a