mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-10 18:28:10 +09:00
tests: Replace ssh_string_free() with SSH_STRING_FREE()
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit ca7da823c3)
This commit is contained in:
committed by
Andreas Schneider
parent
d56c8fdfc6
commit
ee034e0484
@@ -441,7 +441,7 @@ static void torture_pki_ed25519_sign(void **state)
|
||||
/* ssh_print_hexa("signature", ssh_string_data(blob), ssh_string_len(blob)); */
|
||||
ssh_signature_free(sig);
|
||||
SSH_KEY_FREE(privkey);
|
||||
ssh_string_free(blob);
|
||||
SSH_STRING_FREE(blob);
|
||||
|
||||
}
|
||||
|
||||
@@ -473,7 +473,7 @@ static void torture_pki_ed25519_verify(void **state){
|
||||
/* alter signature and expect false result */
|
||||
|
||||
SSH_KEY_FREE(pubkey);
|
||||
ssh_string_free(blob);
|
||||
SSH_STRING_FREE(blob);
|
||||
free(pkey_ptr);
|
||||
}
|
||||
|
||||
@@ -509,7 +509,7 @@ static void torture_pki_ed25519_verify_bad(void **state){
|
||||
|
||||
}
|
||||
SSH_KEY_FREE(pubkey);
|
||||
ssh_string_free(blob);
|
||||
SSH_STRING_FREE(blob);
|
||||
free(pkey_ptr);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user