summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2022-05-11 15:55:04 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2022-05-31 15:23:46 +0900
commita15cb31bf7338ab36562bea6d7ab6e8d776eadb5 (patch)
treea4ea0499b3bee99e7e53db71d00691052181d2fb /tests
parentef2e1523c33c3143b4fee0c00f88a5a0842b337f (diff)
downloadlibgcrypt-a15cb31bf7338ab36562bea6d7ab6e8d776eadb5.tar.gz
tests: Fix copy paste error
-- * tests/basic.c (check_ocb_cipher_checksum): Check the right value for errors Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/basic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/basic.c b/tests/basic.c
index 90bbf962..ab00667e 100644
--- a/tests/basic.c
+++ b/tests/basic.c
@@ -8448,7 +8448,7 @@ check_ocb_cipher_checksum (int algo, int keylen)
return;
}
outbuf = xmalloc(buflen);
- if (!inbuf)
+ if (!outbuf)
{
fail ("out-of-memory\n");
xfree(inbuf);