mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-12-24 19:37:48 +03: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);
|
||||
|
||||
pubkey = publickey_from_privatekey(privkey);
|
||||
assert_true(pubkey != NULL);
|
||||
type_new = privkey->type;
|
||||
privatekey_free(privkey);
|
||||
assert_true(pubkey != NULL);
|
||||
|
||||
pubkey_new = publickey_to_string(pubkey);
|
||||
publickey_free(pubkey);
|
||||
|
||||
Reference in New Issue
Block a user