Skip to content

Commit

Permalink
sftp: statvfs: Along error path, reset the correct 'state' variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwmjones authored and bagder committed Apr 8, 2013
1 parent 486bb37 commit a12f3ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sftp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2752,7 +2752,7 @@ static int sftp_statvfs(LIBSSH2_SFTP *sftp, const char *path,
"Error waiting for FXP EXTENDED REPLY");
} else if (data_len < 93) {
LIBSSH2_FREE(session, data);
sftp->fstatvfs_state = libssh2_NB_state_idle;
sftp->statvfs_state = libssh2_NB_state_idle;
return _libssh2_error(session, LIBSSH2_ERROR_SFTP_PROTOCOL,
"SFTP Protocol Error: short response");
}
Expand Down

0 comments on commit a12f3ff

Please sign in to comment.