]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Fix logic.
authorSimon Josefsson <simon@josefsson.org>
Wed, 12 Aug 2009 08:42:49 +0000 (10:42 +0200)
committerSimon Josefsson <simon@josefsson.org>
Wed, 12 Aug 2009 08:42:49 +0000 (10:42 +0200)
tests/hostname-check.c

index 9876cf2b3a0060bb0fa67dd84c223ff1db56db25..4253fe731249f20c7a2d19b9985735e328103760 100644 (file)
@@ -782,9 +782,9 @@ doit (void)
 
   ret = gnutls_x509_crt_check_hostname (cert, "foo.example.org");
   if (ret)
-    success ("Hostname incorrectly matches (%d)\n", ret);
+    fail ("Hostname incorrectly matches (%d)\n", ret);
   else
-    fail ("Hostname correctly does not match (%d)\n", ret);
+    success ("Hostname correctly does not match (%d)\n", ret);
 
   ret = gnutls_x509_crt_check_hostname (cert, "bar.example.org");
   if (ret)