]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix #9116: copy job missuses the client->FdStorageAddress directive
authorAlain Spineux <alain@baculasystems.com>
Thu, 12 May 2022 09:44:53 +0000 (11:44 +0200)
committerEric Bollengier <eric@baculasystems.com>
Fri, 27 May 2022 08:30:43 +0000 (10:30 +0200)
- when specified the client->FdStorageAddress was used instead of the
  address of the SD

bacula/src/dird/mac.c

index a192add430f30f1d8c7116b134022301e40d4749..bb63c1603f80dffe850b6d14af61a76b1fa42e67 100644 (file)
@@ -606,7 +606,7 @@ bool do_mac(JCR *jcr)
       if (store->SDDport == 0) {
          store->SDDport = store->SDport;
       }
-      store_address = get_storage_address(jcr->client, store);
+      store_address = get_storage_address(NULL, store); /* Ignore the client in a MAC */
       store_port = store->SDDport;
 
       /* Start read message thread */