--- a/libidav/webdav.c Thu May 23 23:19:06 2024 +0200 +++ b/libidav/webdav.c Thu May 23 23:23:36 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;