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-5.0.0~187 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9fa6f8f810c82bc5194800ca1e069df68705a36d;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++) {