diff options
Diffstat (limited to 'plugins/check_tcp.c')
-rw-r--r-- | plugins/check_tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index 7b0f7f8a..1bbb05a3 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c | |||
@@ -238,7 +238,7 @@ main (int argc, char **argv) | |||
238 | result = np_net_ssl_check_cert(days_till_exp_warn, days_till_exp_crit); | 238 | result = np_net_ssl_check_cert(days_till_exp_warn, days_till_exp_crit); |
239 | } | 239 | } |
240 | } | 240 | } |
241 | if(result != STATE_OK || check_cert == TRUE){ | 241 | if(result != STATE_OK){ |
242 | np_net_ssl_cleanup(); | 242 | np_net_ssl_cleanup(); |
243 | if(sd) close(sd); | 243 | if(sd) close(sd); |
244 | return result; | 244 | return result; |