diff -r 1f40ca07ae1b -r 839fefbdedc7 libidav/webdav.c --- a/libidav/webdav.c Sat Apr 20 13:01:58 2024 +0200 +++ b/libidav/webdav.c Thu May 23 22:35:45 2024 +0200 @@ -51,7 +51,7 @@ return NULL; } context->sessions = cxLinkedListCreate(cxDefaultAllocator, cx_cmp_intptr, CX_STORE_POINTERS); - context->sessions->destructor_data = dav_session_destructor; + cxDefineDestructor(context->sessions, dav_session_destructor); context->http_proxy = calloc(1, sizeof(DavProxy)); if(!context->http_proxy) { dav_context_destroy(context); @@ -302,11 +302,11 @@ char *pname = strchr(prefixed_name, ':'); char *pns = "DAV:"; if(pname) { - DavNamespace *ns = dav_get_namespace_s( + DavNamespace *davns = dav_get_namespace_s( ctx, cx_strn(prefixed_name, pname-prefixed_name)); - if(ns) { - pns = ns->name; + if(davns) { + pns = davns->name; pname++; } else { pns = NULL;