mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
tests: Clean correctly SFTP context
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
This commit is contained in:
@@ -400,6 +400,8 @@ static void torture_server_establish_sftp(void **state)
|
||||
|
||||
rc = sftp_init(sftp);
|
||||
assert_int_equal(rc, SSH_OK);
|
||||
|
||||
tsftp->sftp = sftp;
|
||||
}
|
||||
|
||||
static void torture_server_test_sftp_function(void **state)
|
||||
@@ -450,9 +452,9 @@ static void torture_server_test_sftp_function(void **state)
|
||||
|
||||
/* init sftp session */
|
||||
tsftp = s->ssh.tsftp;
|
||||
sftp = tsftp->sftp;
|
||||
sftp = sftp_new(session);
|
||||
assert_non_null(sftp);
|
||||
tsftp->sftp = sftp;
|
||||
|
||||
rc = sftp_init(sftp);
|
||||
assert_int_equal(rc, SSH_OK);
|
||||
|
||||
Reference in New Issue
Block a user