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.2.1~1699 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=85d97dd076f62c0ce0bd1feff22e919feecff160;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")) {