X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=tests%2Fclient.c;h=5c230cf666dbad2564542ed4b08347ebdcf1101f;hb=8c1ed800d8962f196e03efe9ea6c26f7f540cf28;hp=3f2dc4b66f7ccaddaaff185b23d59410e96ee5a7;hpb=c4343157f93bfeb4e6de858fdd61b8fb4eddafc2;p=tlsproxy%2Ftlsproxy.git diff --git a/tests/client.c b/tests/client.c index 3f2dc4b..5c230cf 100644 --- a/tests/client.c +++ b/tests/client.c @@ -1,7 +1,7 @@ /* * Simple GnuTLS client used for testing. * - * Copyright (C) 2011 Simon Ruderich + * Copyright (C) 2011-2013 Simon Ruderich * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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);