From: Eric Bollengier Date: Mon, 7 Aug 2023 09:22:04 +0000 (+0200) Subject: Fix #10323 about bug in status storage with incorrect devices X-Git-Tag: Beta-15.0.0~144 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dab59d7e92c90dee258d4cb46c1ecb821e18cbe6;p=thirdparty%2Fbacula.git Fix #10323 about bug in status storage with incorrect devices --- diff --git a/bacula/src/stored/store_mngr.c b/bacula/src/stored/store_mngr.c index 9e17ee65a..142aa6c53 100644 --- a/bacula/src/stored/store_mngr.c +++ b/bacula/src/stored/store_mngr.c @@ -48,6 +48,10 @@ static bool build_query_size(DEVICE *dev, struct query_size **qs) struct stat statp; struct query_size *temp_qs; + if (!dev) { + return false; + } + /* Alloc helper struct, set correct size for this dev and add it to list * so that later we can sum size of all unique devices */ temp_qs = (struct query_size *) malloc(sizeof(struct query_size));