]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
vss: Fix #9403 About segfault when VSS is not enabled in the FileSet
authorEric Bollengier <eric@baculasystems.com>
Wed, 10 Aug 2022 06:53:37 +0000 (08:53 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:59 +0000 (13:56 +0200)
bacula/src/filed/fd_plugins.c

index dabbbff361cad51c52a0ddee619b678cd8f075b3..a229f728f41ba5dadf9ce5a0e37a836203692d90 100644 (file)
@@ -2066,6 +2066,7 @@ static bRC baculaGetValue(bpContext *ctx, bVariable var, void *value)
          break;
        }
 #endif
+      *(void **)value = NULL;
        return bRC_Error;
    case bVarVssDllHandle:
 #ifdef HAVE_WIN32