]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
CID 1341684: Nit in tests/ntpd/t-ntp_signd.c. HStenn.
authorHarlan Stenn <stenn@ntp.org>
Sat, 5 Dec 2015 09:40:44 +0000 (09:40 +0000)
committerHarlan Stenn <stenn@ntp.org>
Sat, 5 Dec 2015 09:40:44 +0000 (09:40 +0000)
bk: 5662b11csHWHbg93r9HMCxLwzF1P0A

ChangeLog
tests/ntpd/t-ntp_signd.c

index 688ee33732f7d7ec3bc43eccb70cc1e937ba4f65..21c8cf7ac5622f3a5f9ea00d7cbeb444489d83f5 100644 (file)
--- 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 1341684: Nit in tests/ntpd/t-ntp_signd.c.  HStenn.
 * [Bug 2829] Look at pipe_fds in ntpd.c  (did so. perlinger@ntp.org)
 * [Bug 2887] stratum -1 config results as showing value 99
   - fudge stratum only accepts values [0..16]. perlinger@ntp.org
index aaaec0cb313a5b7bace948bb475cfb8a9aa49cd1..534c940d22c1dea14464463ea7fdd8a7dbbd2312 100644 (file)
@@ -164,6 +164,10 @@ test_send_via_ntp_signd(void)
        int     flags = 0;
        struct pkt  *xpkt = (struct pkt *) malloc(sizeof(struct pkt)); //defined in ntp.h
 
+       TEST_ASSERT_NOT_NULL(rbufp);
+       TEST_ASSERT_NOT_NULL(xpkt);
+       memset(xpkt, 0, sizeof(struct pkt));
+
        //send_via_ntp_signd(NULL,NULL,NULL,NULL,NULL); //doesn't work
        /*
        ** Send the xpkt to Samba, read the response back in rbufp