]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-dcrypt: Make static analyzer happier
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 27 Jun 2016 13:37:18 +0000 (16:37 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 28 Jun 2016 07:09:20 +0000 (10:09 +0300)
src/lib-dcrypt/test-crypto.c

index 64434a5d4143352983ce6989012ecafc00a6e84a..a6d96b10b794426a52ace4751efb489184d561c7 100644 (file)
@@ -349,8 +349,7 @@ void test_load_v1_public_key(void)
        test_assert(version == DCRYPT_KEY_VERSION_1);
        test_assert(kind == DCRYPT_KEY_KIND_PUBLIC);
        test_assert(encryption_type == DCRYPT_KEY_ENCRYPTION_TYPE_NONE);
-       test_assert(key_hash != NULL);
-       test_assert(strcmp(key_hash, "d0cfaca5d335f9edc41c84bb47465184cb0e2ec3931bebfcea4dd433615e77a0") == 0);
+       test_assert(key_hash != NULL && strcmp(key_hash, "d0cfaca5d335f9edc41c84bb47465184cb0e2ec3931bebfcea4dd433615e77a0") == 0);
        test_assert(encryption_key_hash == NULL);
 
        struct dcrypt_public_key *pub_key = NULL;