Skip to content

Commit d74398c

Browse files
committed
fix crash in check post processing
Signed-off-by: Sven Nierlein <sven@consol.de>
1 parent 659b11f commit d74398c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/naemon/checks.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,8 @@ int process_check_result(check_result *cr)
317317
source_name = check_result_source(cr);
318318

319319
/* trim whitespace at the end of the plugin output */
320-
rstrip(cr->output);
320+
if(cr->output != NULL)
321+
rstrip(cr->output);
321322

322323
if (cr->object_check_type == SERVICE_CHECK) {
323324
service *svc;

0 commit comments

Comments
 (0)