From: Eric Bollengier Date: Wed, 7 Jun 2017 07:29:34 +0000 (+0200) Subject: Fix #2890 about segfault in .status command on Redhat 5 32bit X-Git-Tag: Release-7.9.4~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6291728fd9da24efdf8d93dbc02313ae1e3c322d;p=bacula%2Fbacula Fix #2890 about segfault in .status command on Redhat 5 32bit --- diff --git a/bacula/src/filed/status.c b/bacula/src/filed/status.c index c8b38ef3f9..0327a82b36 100644 --- a/bacula/src/filed/status.c +++ b/bacula/src/filed/status.c @@ -263,8 +263,9 @@ static void list_running_jobs_api(STATUS_PKT *sp) p = ow.get_output(OT_CLEAR, OT_START_OBJ, OT_END); if (njcr->JobId == 0) { + int val = (njcr->dir_bsock && njcr->dir_bsock->tls)?1:0; ow.get_output(OT_UTIME, "DirectorConnected", njcr->start_time, - OT_INT, "DirTLS", (njcr->dir_bsock && njcr->dir_bsock->tls)?1:0, + OT_INT, "DirTLS", val, OT_END); } else { ow.get_output(OT_INT32, "JobId", njcr->JobId,