gitignore
sftpclient: avoid null pointer deref
sftpclient: adjust reverse() to avoid malloc(0)