]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: fix keys unit test
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 1 Sep 2017 09:28:55 +0000 (11:28 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 1 Sep 2017 09:28:55 +0000 (11:28 +0200)
test/unit/keys.c

index f8e01b270f2300230744ccac63a1cf8cd03a3e20..ac995fad5c1c5603bbf399e49435107661db5562 100644 (file)
@@ -134,8 +134,8 @@ test_unit(void)
       UTI_GetRandomBytes(&key, sizeof (key));
       if (KEY_KeyKnown(key))
         continue;
-      TEST_CHECK(!KEY_GenerateAuth(j, data, data_len, auth, sizeof (auth)));
-      TEST_CHECK(!KEY_CheckAuth(j, data, data_len, auth, auth_len, auth_len));
+      TEST_CHECK(!KEY_GenerateAuth(key, data, data_len, auth, sizeof (auth)));
+      TEST_CHECK(!KEY_CheckAuth(key, data, data_len, auth, auth_len, auth_len));
     }
   }