From: Simon Josefsson Date: Wed, 12 Aug 2009 08:42:49 +0000 (+0200) Subject: Fix logic. X-Git-Tag: gnutls_2_9_2~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=52da1b3723b4c85839f5a777a2db4839c25eea42;p=thirdparty%2Fgnutls.git Fix logic. --- diff --git a/tests/hostname-check.c b/tests/hostname-check.c index 9876cf2b3a..4253fe7312 100644 --- a/tests/hostname-check.c +++ b/tests/hostname-check.c @@ -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)