]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-dcrypt: test-crypto - Add pointer to hold error when calling dcrypt_ctx_sym_create
authorAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 25 Jan 2023 19:52:42 +0000 (21:52 +0200)
committermarkus.valentin <markus.valentin@open-xchange.com>
Fri, 27 Jan 2023 07:38:45 +0000 (07:38 +0000)
Forgotten in 6c65d2f659d8bb2785f5a18fe583b456e0b5cece

src/lib-dcrypt/test-crypto.c

index da058ce1d0a34f4b6587c9ad09856df106f752b4..9d589121632b7be0e69771497569ba19bd0cf507 100644 (file)
@@ -70,7 +70,7 @@ static void test_cipher_test_vectors(void)
                hex_to_binary(vectors[i].ct, ct);
 
                if (!dcrypt_ctx_sym_create("AES-128-CBC", DCRYPT_MODE_ENCRYPT,
-                                          &ctx, NULL)) {
+                                          &ctx, &error)) {
                        test_assert_failed("dcrypt_ctx_sym_create",
                                           __FILE__, __LINE__-1);
                        continue;