From: Kern Sibbald Date: Sun, 6 Dec 2009 16:11:04 +0000 (+0100) Subject: Fix seg fault in new AllowCompression code X-Git-Tag: Release-7.0.0~2504 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8388c3c0698507db5f06683076f8f1b07402a2cb;p=bacula%2Fbacula Fix seg fault in new AllowCompression code --- 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++) {