Code

check_http: Add SSL/TLS hostname extension support (SNI) - (#1939022 - Joe Presbrey)
[nagiosplug.git] / plugins / check_http.c
index 03102033a0f9a3b85036be76d1551b953daf86d8..79f6adf39962767c4d14a19d6d587c988afb6d8f 100644 (file)
@@ -790,7 +790,7 @@ check_http (void)
     die (STATE_CRITICAL, _("HTTP CRITICAL - Unable to open TCP socket\n"));
 #ifdef HAVE_SSL
   if (use_ssl == TRUE) {
-    np_net_ssl_init(sd);
+    np_net_ssl_init_with_hostname(sd, host_name);
     if (check_cert == TRUE) {
       result = np_net_ssl_check_cert(days_till_exp);
       np_net_ssl_cleanup();