fixfix
authorChristian Grothoff <christian@grothoff.org>
Fri, 8 Apr 2016 11:08:02 +0000 (11:08 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 8 Apr 2016 11:08:02 +0000 (11:08 +0000)
src/util/resolver_api.c

index 52519a8010ee444e8a854b0214a69c864e9396e6..81ec01af4b5d3a0475b32080241e7e76daaaae33 100644 (file)
@@ -206,8 +206,8 @@ check_config ()
          "resolver");
     return GNUNET_SYSERR;
   }
-  if ((1 != inet_pton (AF_INET, hostname, &v4)) ||
-      (1 != inet_pton (AF_INET6, hostname, &v6)))
+  if ((1 == inet_pton (AF_INET, hostname, &v4)) ||
+      (1 == inet_pton (AF_INET6, hostname, &v6)))
   {
     GNUNET_free (hostname);
     return GNUNET_OK;