From 5f6ff9f4d1bb1f4bdc01700110435aa1b29c2bcf Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 15 Mar 2011 21:35:21 +0100 Subject: [PATCH] tests/client.c: Exit with EXIT_FAILURE if hostname doesn't match. --- tests/client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/client.c b/tests/client.c index 3f2dc4b..96f688b 100644 --- a/tests/client.c +++ b/tests/client.c @@ -151,6 +151,7 @@ int main (int argc, char *argv[]) { /* Check hostname. */ if (!gnutls_x509_crt_check_hostname(cert, argv[4])) { fprintf(stderr, "hostname didn't match '%s'\n", argv[4]); + return EXIT_FAILURE; } gnutls_x509_crt_deinit(cert); -- 2.45.2