From e925c630d0b8bac87d260c831cd5170aaa150c5f Mon Sep 17 00:00:00 2001 From: "norbert.bizet" Date: Wed, 5 Oct 2022 05:24:13 -0400 Subject: [PATCH] glacier: fix load_glacier_driver for MT9470 --- bacula/src/stored/s3_driver.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bacula/src/stored/s3_driver.c b/bacula/src/stored/s3_driver.c index 7aac67af8..d9f7fbe75 100644 --- a/bacula/src/stored/s3_driver.c +++ b/bacula/src/stored/s3_driver.c @@ -211,9 +211,11 @@ static cloud_glacier *load_glacier_driver(const char* plugin_directory) dlclose(glacier_item.handle); return NULL; } - return glacier_item.newDriver(); } } + if (glacier_item.newDriver) { + return glacier_item.newDriver(); + } return NULL; } -- 2.47.3