From: Eric Bollengier Date: Tue, 30 Mar 2021 06:32:46 +0000 (+0200) Subject: Fix compilation for check_bacula.c reported by Dan X-Git-Tag: Release-11.0.3~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef3a7fe40a2aee5e7acb3bf3144bba713c9cf982;p=thirdparty%2Fbacula.git Fix compilation for check_bacula.c reported by Dan --- diff --git a/bacula/examples/nagios/check_bacula/check_bacula.c b/bacula/examples/nagios/check_bacula/check_bacula.c index 3f47a3529..d3b5bbc63 100644 --- a/bacula/examples/nagios/check_bacula/check_bacula.c +++ b/bacula/examples/nagios/check_bacula/check_bacula.c @@ -324,7 +324,7 @@ int docmd(monitoritem* item, const char* command, char *answer) { continue; } - if (strncmp(item->D_sock, "Events:", strlen("Events:")) == 0) { + if (strncmp(item->D_sock->msg, "Events:", strlen("Events:")) == 0) { /* Daemons can send events to the director, ignore them here */ continue; }