diff -r 83f832e345e0 -r e0358fa1a3b1 dav/config.c --- a/dav/config.c Sun Aug 08 11:45:36 2021 +0200 +++ b/dav/config.c Sun Aug 08 12:45:31 2021 +0200 @@ -574,6 +574,10 @@ int load_secretstore(const xmlNode *node) { // currently only one secretstore is supported + if(!pstore) { + return 0; + } + node = node->children; int error = 0; while(node) { @@ -581,9 +585,9 @@ char *value = util_xml_get_text(node); if(value) { if(xstreq(node->name, "unlock-command")) { - secretstore_unlock_cmd = strdup(value); + pstore->unlock_cmd = strdup(value); } else if(xstreq(node->name, "lock-command")) { - secretstore_lock_cmd = strdup(value); + pstore->lock_cmd = strdup(value); } } }