Bug 1691

Summary: sftp segfaults when entering just '-'
Product: Portable OpenSSH Reporter: Colin Watson <cjwatson>
Component: sftpAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: normal CC: dtucker
Priority: P2    
Version: 5.3p1   
Hardware: ix86   
OS: Linux   
URL: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=531561
Bug Depends on:    
Bug Blocks: 1626    
Attachments:
Description Flags
don't dereference NULL if a command does not follow '-' none

Description Colin Watson 2010-01-05 01:04:17 AEDT
Created attachment 1764 [details]
don't dereference NULL if a command does not follow '-'

In http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=531561, Petri Laakso reported that sftp segfaults when entering just '-'. The attached patch corrects this, and also handles '-' followed by whitespace but nothing else.
Comment 1 Darren Tucker 2010-01-09 22:13:28 AEDT
Patch applied, thanks.  It will be in the 5.4 release.
Comment 2 Darren Tucker 2010-03-26 10:50:58 AEDT
With the release of 5.4p1, this bug is now considered closed.