mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 18:50:28 +09:00
tests: Moved assert to the write place in torture_keyfiles.
Found by clang-analyzer http://test.libssh.org/clang-analyzer/
This commit is contained in:
@@ -133,9 +133,9 @@ static void torture_pubkey_generate_from_privkey(void **state) {
|
|||||||
assert_true(privkey != NULL);
|
assert_true(privkey != NULL);
|
||||||
|
|
||||||
pubkey = publickey_from_privatekey(privkey);
|
pubkey = publickey_from_privatekey(privkey);
|
||||||
|
assert_true(pubkey != NULL);
|
||||||
type_new = privkey->type;
|
type_new = privkey->type;
|
||||||
privatekey_free(privkey);
|
privatekey_free(privkey);
|
||||||
assert_true(pubkey != NULL);
|
|
||||||
|
|
||||||
pubkey_new = publickey_to_string(pubkey);
|
pubkey_new = publickey_to_string(pubkey);
|
||||||
publickey_free(pubkey);
|
publickey_free(pubkey);
|
||||||
|
|||||||
Reference in New Issue
Block a user