]> git.sur5r.net Git - bacula/bacula/commitdiff
Make SD session key more unique
authorKern Sibbald <kern@sibbald.com>
Wed, 26 Sep 2007 21:30:43 +0000 (21:30 +0000)
committerKern Sibbald <kern@sibbald.com>
Wed, 26 Sep 2007 21:30:43 +0000 (21:30 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5663 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/stored/job.c

index 2bb5bda0a2567d5a0c7921cdb786dcbcb98c9a34..3da8c386d5ca3f4b0f93e6142861cb5d28cd929d 100644 (file)
@@ -135,7 +135,7 @@ bool job_cmd(JCR *jcr)
    /*
     * Pass back an authorization key for the File daemon
     */
-   bsnprintf(seed, sizeof(seed), "%p", jcr);
+   bsnprintf(seed, sizeof(seed), "%p%d", jcr, JobId);
    make_session_key(auth_key, seed, 1);
    dir->fsend(OKjob, jcr->VolSessionId, jcr->VolSessionTime, auth_key);
    if (debug_level == 3) {