diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-03-13 10:07:10 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-03-13 10:07:10 -0400 |
commit | 119896cd43f420a053c552afe390f6d66224b3b7 (patch) | |
tree | f1a5b043e16a9abda94c1bec9811f4c384e7ef85 /src/test/test_routerkeys.c | |
parent | a522e9492b8c9bad4f33e8cf65d0dc141deda84a (diff) | |
download | tor-119896cd43f420a053c552afe390f6d66224b3b7.tar.gz tor-119896cd43f420a053c552afe390f6d66224b3b7.zip |
Fix some leaks/missed checks in the unit tests
Coverity spotted these.
Diffstat (limited to 'src/test/test_routerkeys.c')
-rw-r--r-- | src/test/test_routerkeys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_routerkeys.c b/src/test/test_routerkeys.c index ff52a7e7c1..1c8174b065 100644 --- a/src/test/test_routerkeys.c +++ b/src/test/test_routerkeys.c @@ -32,7 +32,7 @@ test_routerkeys_write_fingerprint(void *arg) set_server_identity_key(key); set_client_identity_key(crypto_pk_dup_key(key)); - check_private_dir(ddir, CPD_CREATE, NULL); + tt_int_op(0, ==, check_private_dir(ddir, CPD_CREATE, NULL)); tt_int_op(crypto_pk_cmp_keys(get_server_identity_key(),key),==,0); /* Write fingerprint file */ |