sftp: Prevent files from being skipped if the output buffer is too small (#746)
sftp: Prevent files from being skipped if the output buffer is too small (#746)

Notes:
LIBSSH2_ERROR_BUFFER_TOO_SMALL is returned if the buffer is too small
to contain a returned directory entry. On this condition we jump to the
label `end`. At this point the number of names left is decremented
despite no name being returned.

As suggested in #714, this commit moves the error label after the
decrement of `names_left`.

Fixes #714

Credit:
Co-authored-by: Gabriel Smith <2cf0ce36e547f0e2a63c68fad811e2b83315c2e8@precisionot.com>
libssh2/libssh2,libssh2/libssh2,libssh2/libssh2,libssh2/libssh2