Fixed uninitialized field
Fixed memory overruns in sftp & sftp2