]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix seg fault in new AllowCompression code
authorKern Sibbald <kern@sibbald.com>
Sun, 6 Dec 2009 16:11:04 +0000 (17:11 +0100)
committerKern Sibbald <kern@sibbald.com>
Sun, 6 Dec 2009 16:11:04 +0000 (17:11 +0100)
bacula/src/dird/fd_cmds.c

index 46ca8138f7b184b5cb91eb9a074ab4b0118cd422..c6b621fb4d35ebaef18d0b47d29285f44b9b986c 100644 (file)
@@ -370,7 +370,7 @@ static bool send_fileset(JCR *jcr)
             }
 
             /* Strip out compression option Zn if disallowed for this Storage */
-            if (!store->AllowCompress) {
+            if (store && !store->AllowCompress) {
                char newopts[MAX_FOPTS];
                int j = 0;
                for (k=0; fo->opts[k]!='\0'; k++) {