]> ruderich.org/simon Gitweb - tlsproxy/tlsproxy.git/blobdiff - tests/client.c
src/*,tests/*: Update copyright year.
[tlsproxy/tlsproxy.git] / tests / client.c
index 3f2dc4b66f7ccaddaaff185b23d59410e96ee5a7..75d4ab3810aa1499b87652b4724b3b40bac76065 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Simple GnuTLS client used for testing.
  *
- * Copyright (C) 2011  Simon Ruderich
+ * Copyright (C) 2011-2012  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);