]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
4372. [bug] Address undefined behaviour in libt_api. [RT #42480]
authorMark Andrews <marka@isc.org>
Thu, 26 May 2016 01:57:16 +0000 (11:57 +1000)
committerMark Andrews <marka@isc.org>
Thu, 26 May 2016 01:57:16 +0000 (11:57 +1000)
CHANGES
lib/tests/t_api.c

diff --git a/CHANGES b/CHANGES
index 849f5716af5aeb3e30a2536992731895111ecedd..08ff54979fb623b6d0ddf5d5b63f40fe721bda71 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+4372.  [bug]           Address undefined behaviour in libt_api. [RT #42480]
+
 4371.  [func]          New "minimal-any" option reduces the size of UDP
                        responses for qtype ANY by returning a single
                        arbitrarily selected RRset instead of all RRsets.
index 9c908c1a53ba47273cf203aa780854c385c1c655..4f1b286feb926057f652fc3180bd0dea79f74842 100644 (file)
@@ -295,7 +295,7 @@ t_main(int argc, char **argv)
 
        tnum = 0;
        pts = &T_testlist[0];
-       while (*pts->pfv != NULL) {
+       while (pts->pfv != NULL) {
                if (T_tvec[tnum / 8] & (0x01 << (tnum % 8))) {
 #ifndef WIN32
                        if (subprocs) {
@@ -841,7 +841,7 @@ t_settests(const testspec_t list[]) {
 
        pts = &list[0];
        for (tnum = 0; tnum < T_MAXTESTS - 1; pts++, tnum++) {
-               if (*pts->pfv == NULL)
+               if (pts->pfv == NULL)
                        break;
                T_testlist[tnum] = *pts;
        }