mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-01 11:26:52 +03:00
test: Fix unused variables and potential memory leaks
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Norbert Pocs <norbertpocs0@gmail.com>
This commit is contained in:
@ -398,7 +398,6 @@ static void torture_server_establish_sftp(void **state)
|
||||
|
||||
/* init sftp session */
|
||||
tsftp = s->ssh.tsftp;
|
||||
sftp = tsftp->sftp;
|
||||
|
||||
printf("in establish before sftp_new\n");
|
||||
sftp = sftp_new(session);
|
||||
@ -454,8 +453,6 @@ static void torture_server_test_sftp_function(void **state)
|
||||
rc = ssh_userauth_password(session, NULL, SSHD_DEFAULT_PASSWORD);
|
||||
assert_int_equal(rc, SSH_AUTH_SUCCESS);
|
||||
|
||||
rv_str = ssh_get_issue_banner(session);
|
||||
|
||||
/* init sftp session */
|
||||
tsftp = s->ssh.tsftp;
|
||||
sftp = sftp_new(session);
|
||||
|
Reference in New Issue
Block a user