From b263ce04a941ab67bb01e92e92fe38400991d986 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 20 Feb 2010 18:37:58 +0100 Subject: [PATCH] Fix seg fault in dup jobs regression test --- bacula/src/dird/fd_cmds.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bacula/src/dird/fd_cmds.c b/bacula/src/dird/fd_cmds.c index c6b621fb4d..71c6b1742c 100644 --- a/bacula/src/dird/fd_cmds.c +++ b/bacula/src/dird/fd_cmds.c @@ -122,6 +122,9 @@ int connect_to_file_daemon(JCR *jcr, int retry_interval, int max_retry_time, /* * Now send JobId and authorization key */ + if (jcr->sd_auth_key == NULL) { + jcr->sd_auth_key = bstrdup("dummy"); + } fd->fsend(jobcmd, edit_int64(jcr->JobId, ed1), jcr->Job, jcr->VolSessionId, jcr->VolSessionTime, jcr->sd_auth_key); if (!jcr->keep_sd_auth_key && strcmp(jcr->sd_auth_key, "dummy")) { -- 2.39.5