[monitoring-plugins] fixed regerror is MAX_INPUT_BUFFER writting into ...

Andreas Baumann git at monitoring-plugins.org
Sat Feb 11 18:40:13 CET 2023


 Module: monitoring-plugins
 Branch: curlfixes
 Commit: 27b0c6964559ba60ff6c7a626d51e62e5256ed62
 Author: Andreas Baumann <mail at andreasbaumann.cc>
   Date: Sat Feb 11 18:39:24 2023 +0100
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=27b0c69

fixed regerror is MAX_INPUT_BUFFER writting into too small errbuf

---

 plugins/check_curl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/check_curl.c b/plugins/check_curl.c
index 7916eb5..406f6f8 100644
--- a/plugins/check_curl.c
+++ b/plugins/check_curl.c
@@ -173,7 +173,7 @@ double time_connect;
 double time_appconnect;
 double time_headers;
 double time_firstbyte;
-char errbuf[CURL_ERROR_SIZE+1];
+char errbuf[MAX_INPUT_BUFFER];
 CURLcode res;
 char url[DEFAULT_BUFFER_SIZE];
 char msg[DEFAULT_BUFFER_SIZE];



More information about the Commits mailing list