dav_session_clone should not clone anything that relies on userdata dav-2 tip

Sun, 28 Jun 2026 20:42:43 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 28 Jun 2026 20:42:43 +0200
branch
dav-2
changeset 919
7f250903d903
parent 918
ca393d39e5cd

dav_session_clone should not clone anything that relies on userdata

libidav/session.c file | annotate | diff | comparison | revisions
--- a/libidav/session.c	Sat Jun 27 18:13:47 2026 +0200
+++ b/libidav/session.c	Sun Jun 28 20:42:43 2026 +0200
@@ -132,12 +132,8 @@
     newsn->handle = newhandle;
 
     newsn->base_url = cx_strdup_a(newsn->mp->allocator, cx_str(sn->base_url)).ptr;
-    newsn->auth_prompt = sn->auth_prompt;
-    newsn->authprompt_userdata = sn->authprompt_userdata;
+    
     newsn->logfunc = sn->logfunc;
-    newsn->get_progress = sn->get_progress;
-    newsn->put_progress = sn->put_progress;
-    newsn->progress_userdata = sn->progress_userdata;
 
     // add to context
     dav_context_add_session(sn->context, newsn);

mercurial