[Bug 1956] sftp segfaults in parse_args() when argv[0] is NULL

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Thu Jan 17 07:29:32 EST 2013


--- Comment #5 from Iain Morgan <imorgan at nas.nasa.gov> ---
Created attachment 2209
  --> https://bugzilla.mindrot.org/attachment.cgi?id=2209&action=edit
Check for argv[0] == NULL before strcasecmp()

I finally got some time to look at this in more detail. :-)

Checking whether argv[0] == NULL just before the strcasecmp() statement
has the advantage that the user will receive an "Invalid command"
response. That would seem to be more consistent.

You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.

More information about the openssh-bugs mailing list