From: Harlan Stenn Date: Sat, 5 Dec 2015 10:31:39 +0000 (+0000) Subject: CID 1341679: Nits in sntp/tests/keyFile.c. HStenn. X-Git-Tag: NTP_4_3_87~1^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce89d356a8d90e469ba666b3576c1470d0473454;p=thirdparty%2Fntp.git CID 1341679: Nits in sntp/tests/keyFile.c. HStenn. bk: 5662bd0bhu_SJ1RIc3LHOTku5wuSEw --- diff --git a/ChangeLog b/ChangeLog index 3ad1e0ab5..76d73b54e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,7 @@ * CID 1341536: Resource leak in tests/ntpd/t-ntp_signd.c. HStenn. * CID 1341537: Resource leak in tests/ntpd/t-ntp_signd.c. HStenn. * CID 1341538: Memory leak in tests/ntpd/ntp_prio_q.c:262. HStenn. +* CID 1341679: Nits in sntp/tests/keyFile.c. HStenn. * CID 1341680: Nits in sntp/tests/keyFile.c. HStenn. * CID 1341681: Nits in sntp/tests/keyFile.c. HStenn. * CID 1341682: Nit in libntp/authreadkeys.c. HStenn. diff --git a/sntp/tests/keyFile.c b/sntp/tests/keyFile.c index c761057b2..4b350006b 100644 --- a/sntp/tests/keyFile.c +++ b/sntp/tests/keyFile.c @@ -91,10 +91,12 @@ test_ReadASCIIKeys(void) { void test_ReadHexKeys(void) { struct key* keys = NULL; + const char *path = CreatePath("key-test-hex", INPUT_DIR); - TEST_ASSERT_EQUAL(3, auth_init(CreatePath("key-test-hex", INPUT_DIR), &keys)); - + TEST_ASSERT_NOT_NULL(path); + TEST_ASSERT_EQUAL(3, auth_init(path, &keys)); TEST_ASSERT_NOT_NULL(keys); + free((void *)path); struct key* result = NULL; get_key(10, &result);