]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix compilation for check_bacula.c reported by Dan
authorEric Bollengier <eric@baculasystems.com>
Tue, 30 Mar 2021 06:32:46 +0000 (08:32 +0200)
committerEric Bollengier <eric@baculasystems.com>
Tue, 30 Mar 2021 06:33:00 +0000 (08:33 +0200)
bacula/examples/nagios/check_bacula/check_bacula.c

index 3f47a3529cb5e4c300d0ab2c7ac102c9ea01a1c7..d3b5bbc63a413b0a94f1d33bcbcdf1b7222de323 100644 (file)
@@ -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;
         }