libnettle/off-by-one-test-suite.patch

14 lines
400 B
Diff
Raw Normal View History

Index: testsuite/des-compat-test.c
===================================================================
--- testsuite/des-compat-test.c.orig
+++ testsuite/des-compat-test.c
@@ -346,7 +346,7 @@ test_main(void)
#ifndef LIBDES_LIT
if (verbose) printf("Doing ede ecb\n");
- for (i=0; i<(NUM_TESTS-1); i++)
+ for (i=0; i<(NUM_TESTS-2); i++)
{
if ((j=des_key_sched(&key_data[i], ks)) != 0)
{