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.
Patch applied, thanks. It will be in the 5.4 release.
With the release of 5.4p1, this bug is now considered closed.