From 6291728fd9da24efdf8d93dbc02313ae1e3c322d Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Wed, 7 Jun 2017 09:29:34 +0200 Subject: [PATCH] Fix #2890 about segfault in .status command on Redhat 5 32bit --- bacula/src/filed/status.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.39.5