Просмотр исходного кода

Fix order of `close()` vs `np_net_ssl_cleanup()`

One pull request had the old wrong order (close after np_net_ssl_cleanup)
which overlayed one instance that a previous PR fixed.
John C. Frickson 8 лет назад
Родитель
Сommit
19b1808fb8
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      plugins/check_http.c

+ 1 - 1
plugins/check_http.c

@@ -1027,8 +1027,8 @@ check_http (void)
     if (check_cert == TRUE) {
 			result = np_net_ssl_check_cert(days_till_exp_warn, days_till_exp_crit);
 			if (result != STATE_OK) {
-				np_net_ssl_cleanup();
 				if (sd) close(sd);
+				np_net_ssl_cleanup();
 				return result;
 			}
     }