summaryrefslogtreecommitdiff
path: root/src/check_curl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/check_curl.c')
-rw-r--r--src/check_curl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/check_curl.c b/src/check_curl.c
index 556cd92..f95547b 100644
--- a/src/check_curl.c
+++ b/src/check_curl.c
@@ -174,6 +174,7 @@ int main( int argc, char *argv[] ) {
/* Curl errors, result in critical Nagios state */
if( res != CURLE_OK ) {
+ remove_newlines( errbuf );
printf( "HTTP CRITICAL - %s (error: %d)\n", errbuf, res );
curlhelp_freebuffer( &body_buf );
curlhelp_freebuffer( &header_buf );