From: Simon Ruderich Date: Tue, 15 Mar 2011 20:35:21 +0000 (+0100) Subject: tests/client.c: Exit with EXIT_FAILURE if hostname doesn't match. X-Git-Tag: 0.2~14 X-Git-Url: https://ruderich.org/simon/gitweb/?p=tlsproxy%2Ftlsproxy.git;a=commitdiff_plain;h=5f6ff9f4d1bb1f4bdc01700110435aa1b29c2bcf tests/client.c: Exit with EXIT_FAILURE if hostname doesn't match. --- 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);