]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix seg fault in dup jobs regression test
authorKern Sibbald <kern@sibbald.com>
Sat, 20 Feb 2010 17:37:58 +0000 (18:37 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:49:33 +0000 (16:49 +0200)
bacula/src/dird/fd_cmds.c

index c6b621fb4d35ebaef18d0b47d29285f44b9b986c..71c6b1742c813cd47011e11ad535db5497cf7810 100644 (file)
@@ -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")) {