From: Kern Sibbald Date: Sat, 20 Feb 2010 17:37:58 +0000 (+0100) Subject: Fix seg fault in dup jobs regression test X-Git-Tag: Release-5.0.1~33 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b263ce04a941ab67bb01e92e92fe38400991d986;p=bacula%2Fbacula Fix seg fault in dup jobs regression test --- 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")) {