1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-21 14:00:51 +03:00

Me and my long fingers couldn't resist "merging" these statements in a previous

commit but of course that broke functionality and this is a revert of that
change.
This commit is contained in:
Daniel Stenberg
2009-03-27 21:52:49 +00:00
parent 76dab196b1
commit 103a6e9e0b

View File

@@ -864,7 +864,8 @@ sftp_open(LIBSSH2_SFTP *sftp, const char *filename,
s += filename_len;
if (open_type == LIBSSH2_SFTP_OPENFILE) {
_libssh2_htonu32(s, flags);
s += 4 + sftp_attr2bin(s, &attrs);
s += 4;
s += sftp_attr2bin(s, &attrs);
}
_libssh2_debug(session, LIBSSH2_DBG_SFTP, "Sending %s open request",
@@ -2067,7 +2068,8 @@ static int sftp_mkdir(LIBSSH2_SFTP *sftp, const char *path,
_libssh2_htonu32(s, path_len);
s += 4;
memcpy(s, path, path_len);
s += path_len + sftp_attr2bin(s, &attrs);
s += path_len;
s += sftp_attr2bin(s, &attrs);
sftp->mkdir_state = libssh2_NB_state_created;
}