1
0
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:
Jakub Jelen
2025-04-16 16:38:55 +02:00
parent 3b4b8033de
commit c735b44f83

View File

@ -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);