From: Eric Bollengier Date: Fri, 25 Jun 2021 08:14:02 +0000 (+0200) Subject: Fix heartbeat segfault when the job is terminated very quickly X-Git-Tag: Release-11.3.2~483 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=857bcad2a071cbc59e508c6e77e5530941a51cb7;p=thirdparty%2Fbacula.git Fix heartbeat segfault when the job is terminated very quickly --- diff --git a/bacula/src/filed/heartbeat.c b/bacula/src/filed/heartbeat.c index 0a2267510..41bcd2f31 100644 --- a/bacula/src/filed/heartbeat.c +++ b/bacula/src/filed/heartbeat.c @@ -151,7 +151,7 @@ void stop_heartbeat_monitor(JCR *jcr) } /* Wait max 10 secs for heartbeat thread to start (hb_status= 0 => 1 */ - while (!jcr->hb_status == 0 && cnt++ < 200) { + while (jcr->hb_status == 0 && cnt++ < 200) { bmicrosleep(0, 50000); /* wait for start */ }