]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_dav: When a PROPPATCH attempts to remove a non-existent dead
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 27 Jun 2013 17:13:45 +0000 (17:13 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 27 Jun 2013 17:13:45 +0000 (17:13 +0000)
property on a resource for which there is no dead property in the same
namespace httpd segfaults.

PR: 52559
Backports: r1476642
Submitted by: Diego Santa Cruz <diego.santaCruz spinetix.com>
Reviewed by: minfrin, wrowe, rjung

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1497455 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
STATUS
modules/dav/fs/dbm.c

diff --git a/CHANGES b/CHANGES
index b0e289db623bb56b8d938f2da4d4755f9080f721..d8f3ce459f440fba1152ac4944c154650325abaa 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -46,6 +46,11 @@ Changes with Apache 2.2.25
      result in a 412 Precondition Failed. PR54610 [Timothy Wood
      <tjw omnigroup.com>]
 
+  *) mod_dav: When a PROPPATCH attempts to remove a non-existent dead
+     property on a resource for which there is no dead property in the same
+     namespace httpd segfaults. PR 52559 [Diego Santa Cruz
+     <diego.santaCruz spinetix.com>]
+
 Changes with Apache 2.2.24
 
   *) SECURITY: CVE-2012-3499 (cve.mitre.org)
diff --git a/STATUS b/STATUS
index 62ac7df8a0a3e5cbeda7036325de073da743041c..dc8a4ffbd739a705c3fafb577502215f8f336cce 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -96,15 +96,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
   
-  * mod_dav: When a PROPPATCH attempts to remove a non-existent dead
-    property on a resource for which there is no dead property in the same
-    namespace httpd segfaults. PR 52559
-    [Diego Santa Cruz <diego.santaCruz spinetix.com>]
-    trunk patch: http://svn.apache.org/r1476642
-    2.4.x patch: http://svn.apache.org/r1486458
-    2.2.x patch: trunk patch works (minus CHANGES)
-    +1: minfrin, wrowe, rjung
-
   * mod_dav: Do not fail PROPPATCH when prop namespace is not known. PR 52559
     [Diego Santa Cruz <diego.santaCruz spinetix.com>]
     trunk patch: http://svn.apache.org/r1476644
index 751a82bfdbc9028283e2cef138e6d958223b3133..040c3e3d6fc9fad6a11c32b2729856422ff0d3b6 100644 (file)
@@ -729,6 +729,10 @@ static dav_error * dav_propdb_get_rollback(dav_db *db,
 static dav_error * dav_propdb_apply_rollback(dav_db *db,
                                              dav_deadprop_rollback *rollback)
 {
+    if (!rollback) {
+        return NULL; /* no rollback, nothing to do */
+    }
+
     if (rollback->value.dptr == NULL) {
         /* don't fail if the thing isn't really there. */
         (void) dav_dbm_delete(db, rollback->key);