From 7ab2d56e75d2a87bf3147c149773357e9546ce9b Mon Sep 17 00:00:00 2001 From: Ruediger Pluem Date: Sat, 5 Nov 2005 22:37:30 +0000 Subject: [PATCH] * Fix a null pointer dereference in dav_method_mkcol during the handling of errors from dav_auto_checkin. Submitted by: Ghassan Misherghi git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@331041 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 4 ++++ modules/dav/main/mod_dav.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index babc003af1..47fdad8d7b 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,10 @@ Changes with Apache 2.3.0 [Remove entries to the current 2.0 and 2.2 section below, when backported] + *) mod_dav: Fix a null pointer dereference in an error code path during the + handling of MKCOL. + [Ruediger Pluem, Ghassan Misherghi ] + *) Fix DESTDIR=... installation when using bundled copy of APR. [Torsten Foertsch ] diff --git a/modules/dav/main/mod_dav.c b/modules/dav/main/mod_dav.c index 47dfab0039..937aeadc2f 100644 --- a/modules/dav/main/mod_dav.c +++ b/modules/dav/main/mod_dav.c @@ -2508,7 +2508,7 @@ static int dav_method_mkcol(request_rec *r) } if (err2 != NULL) { /* just log a warning */ - err = dav_push_error(r->pool, err->status, 0, + err = dav_push_error(r->pool, err2->status, 0, "The MKCOL was successful, but there " "was a problem automatically checking in " "the parent collection.", -- 2.40.0