# HG changeset patch
# User Olaf Wintermann <olaf.wintermann@gmail.com>
# Date 1730104624 -3600
# Node ID 23f3b02c6725da761eaa2f52d5f93b5358ab706e
# Parent  d262210f8454b9a486e170f88f28464fbe52d6a7
safe pwdstore decryption status

diff -r d262210f8454 -r 23f3b02c6725 libidav/config.c
--- a/libidav/config.c	Sun Oct 27 16:08:28 2024 +0100
+++ b/libidav/config.c	Mon Oct 28 09:37:04 2024 +0100
@@ -458,7 +458,7 @@
     xmlNode *repoNode = xmlNewNode(NULL, BAD_CAST "repository");
     xmlNode *rtext1 = xmlNewDocText(config->doc, BAD_CAST "\n");
     xmlAddChild(repoNode, rtext1);
-    
+    repo->node = repoNode;
     if(repo->name.value.ptr) {
         repo->name.node = addXmlNode(repoNode, "name", repo->name.value);
     }
diff -r d262210f8454 -r 23f3b02c6725 libidav/pwdstore.c
--- a/libidav/pwdstore.c	Sun Oct 27 16:08:28 2024 +0100
+++ b/libidav/pwdstore.c	Mon Oct 28 09:37:04 2024 +0100
@@ -306,6 +306,8 @@
     
     cxBufferFree(content);
     
+    p->isdecrypted = 1;
+    
     return 0;
 }