]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_dav_lock: use the right dav_lock_discovery
authorEric Covener <covener@apache.org>
Sun, 26 Apr 2026 16:04:17 +0000 (16:04 +0000)
committerEric Covener <covener@apache.org>
Sun, 26 Apr 2026 16:04:17 +0000 (16:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1933353 13f79535-47bb-0310-9956-ffa450edef68

modules/dav/lock/locks.c

index e85e288b3267a3aeb1f65e35b04e1e61b2ef5333..b36f846d79607d3fa07d209457a964cf64c93123 100644 (file)
@@ -1190,13 +1190,13 @@ static dav_error * dav_generic_refresh_locks(dav_lockdb *lockdb,
         }
         if (dav_generic_do_refresh(dp_scan, ltl, new_time)) {
             /* the lock was refreshed. return the lock. */
-            newlock = dav_generic_alloc_lock(lockdb, ip->key, dp->locktoken);
+            newlock = dav_generic_alloc_lock(lockdb, ip->key, dp_scan->locktoken);
             newlock->is_locknull = !resource->exists;
-            newlock->scope = dp->f.scope;
-            newlock->type = dp->f.type;
-            newlock->depth = dp->f.depth;
-            newlock->timeout = dp->f.timeout;
-            newlock->owner = dp->owner;
+            newlock->scope = dp_scan->f.scope;
+            newlock->type = dp_scan->f.type;
+            newlock->depth = dp_scan->f.depth;
+            newlock->timeout = dp_scan->f.timeout;
+            newlock->owner = dp_scan->owner;
             newlock->auth_user = dp_scan->auth_user;
 
             newlock->next = *locks;