INN commit: branches/2.6/tests/lib (getaddrinfo-t.c)

INN Commit rra at isc.org
Fri Nov 4 22:45:11 UTC 2016


    Date: Friday, November 4, 2016 @ 15:45:10
  Author: iulius
Revision: 10106

Fix weird !strcmp == 0 construct

Thanks to The Doctor for the report.

Modified:
  branches/2.6/tests/lib/getaddrinfo-t.c

-----------------+
 getaddrinfo-t.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: getaddrinfo-t.c
===================================================================
--- getaddrinfo-t.c	2016-11-04 22:42:26 UTC (rev 10105)
+++ getaddrinfo-t.c	2016-11-04 22:45:10 UTC (rev 10106)
@@ -262,7 +262,7 @@
     is_int(0, saddr->sin_port, "...port is 0");
     first = ai;
     for (found = 0; ai != NULL; ai = ai->ai_next) {
-        if (!strcmp(ai->ai_canonname, first->ai_canonname) == 0) {
+        if (strcmp(ai->ai_canonname, first->ai_canonname) != 0) {
             ok(0, "...canonname matches");
             break;
         }



More information about the inn-committers mailing list