libidav/session.c

branch
dav-2
changeset 893
38800d479cd4
parent 891
4d58cbcc9efa
--- a/libidav/session.c	Tue Dec 30 21:27:14 2025 +0100
+++ b/libidav/session.c	Tue Dec 30 21:39:38 2025 +0100
@@ -405,7 +405,7 @@
         char *cp = strdup(path);
         //printf("cp: %s\n", cp);
         while(strlen(cp) > 1) {
-            char *cached = cxMapGet(sn->pathcache, cx_hash_key_str(cp));
+            char *cached = cxMapGet(sn->pathcache, cp);
             if(cached) {
                 start = strlen(cp);
                 begin = start;
@@ -621,7 +621,7 @@
     
     cxstring p = cx_str(path);
     
-    DavLock *lock = cxMapGet(locks->resource_locks, cx_hash_key(p.ptr, p.length));
+    DavLock *lock = cxMapGet(locks->resource_locks, p);
     if(lock) {
         return lock;
     }
@@ -647,7 +647,7 @@
         return;
     }
     
-    if(!cxMapRemove(locks->resource_locks, cx_hash_key_str(path))) {
+    if(!cxMapRemove(locks->resource_locks, path)) {
         return;
     }
 

mercurial