From 8388c3c0698507db5f06683076f8f1b07402a2cb Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 6 Dec 2009 17:11:04 +0100 Subject: [PATCH] Fix seg fault in new AllowCompression code --- bacula/src/dird/fd_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacula/src/dird/fd_cmds.c b/bacula/src/dird/fd_cmds.c index 46ca8138f7..c6b621fb4d 100644 --- a/bacula/src/dird/fd_cmds.c +++ b/bacula/src/dird/fd_cmds.c @@ -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++) { -- 2.39.5