aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2011-01-06 10:23:54 +0100
committerAndreas Schneider <asn@cynapses.org>2011-01-06 11:44:02 +0100
commit61852635b58cb9dac00085ae6ad9a811b553666a (patch)
treeba16692f3daac5c1f5da82d7befb42d4dd9c6dc4 /tests
parent184f1e17068a369ae030c9cdbe0e9ac3f6de286b (diff)
downloadlibssh-61852635b58cb9dac00085ae6ad9a811b553666a.tar.gz
libssh-61852635b58cb9dac00085ae6ad9a811b553666a.tar.xz
libssh-61852635b58cb9dac00085ae6ad9a811b553666a.zip
tests: Moved assert to the write place in torture_keyfiles.
Found by clang-analyzer http://test.libssh.org/clang-analyzer/
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/torture_keyfiles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unittests/torture_keyfiles.c b/tests/unittests/torture_keyfiles.c
index 391053ce..07a1f57e 100644
--- a/tests/unittests/torture_keyfiles.c
+++ b/tests/unittests/torture_keyfiles.c
@@ -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);