fix dav-sync push crash

Mon, 12 Jun 2023 21:17:37 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Mon, 12 Jun 2023 21:17:37 +0200
changeset 759
a3e35cae098b
parent 758
606519b4a867
child 760
ae759e4be591

fix dav-sync push crash

dav/sync.c file | annotate | diff | comparison | revisions
--- a/dav/sync.c	Mon Jun 12 20:09:30 2023 +0200
+++ b/dav/sync.c	Mon Jun 12 21:17:37 2023 +0200
@@ -744,9 +744,9 @@
             
             char *status = dav_get_string_property(res, "idav:status");
             if(status && !strcmp(status, "broken")) {
-                res = res->next;
                 localres_keep(db, res->path);
                 cxListAdd(res_broken, res);
+                res = res->next;
                 continue;
             }
             

mercurial