diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2008-10-07 21:11:34 +0000 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2008-10-07 21:11:34 +0000 |
commit | c5a07aacda3cd85043eaa7b9a38f4d863271705c (patch) | |
tree | 5d52fc45d9b9e5fda4f64bcc5aba224de243ed07 /src/check_curl.c | |
parent | 6b1b9863d8fccfe09c2f72c68e1ebfeea54efbe8 (diff) | |
download | nagios-plugin-curl-c5a07aacda3cd85043eaa7b9a38f4d863271705c.tar.gz nagios-plugin-curl-c5a07aacda3cd85043eaa7b9a38f4d863271705c.tar.bz2 |
- fixed one-line-outputs in curl error buffers
Diffstat (limited to 'src/check_curl.c')
-rw-r--r-- | src/check_curl.c | 1 |
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 ); |