|
@@ -1030,11 +1030,10 @@ check_http (void)
|
|
|
elapsed_time_ssl = (double)microsec_ssl / 1.0e6;
|
|
elapsed_time_ssl = (double)microsec_ssl / 1.0e6;
|
|
|
if (check_cert == TRUE) {
|
|
if (check_cert == TRUE) {
|
|
|
result = np_net_ssl_check_cert(days_till_exp_warn, days_till_exp_crit);
|
|
result = np_net_ssl_check_cert(days_till_exp_warn, days_till_exp_crit);
|
|
|
- if (result != STATE_OK) {
|
|
|
|
|
- if (sd) close(sd);
|
|
|
|
|
- np_net_ssl_cleanup();
|
|
|
|
|
- return result;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if (sd)
|
|
|
|
|
+ close(sd);
|
|
|
|
|
+ np_net_ssl_cleanup();
|
|
|
|
|
+ return result;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
#endif /* HAVE_SSL */
|
|
#endif /* HAVE_SSL */
|