1
0
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:
Andreas Schneider
2011-01-06 10:23:54 +01:00
parent 184f1e1706
commit 61852635b5

View File

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