From: Ruediger Pluem Date: Sat, 5 Nov 2005 22:37:30 +0000 (+0000) Subject: * Fix a null pointer dereference in dav_method_mkcol during the handling of X-Git-Tag: 2.3.0~2802 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ab2d56e75d2a87bf3147c149773357e9546ce9b;p=thirdparty%2Fapache%2Fhttpd.git * 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 --- diff --git a/CHANGES b/CHANGES index babc003af1d..47fdad8d7be 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 47dfab00394..937aeadc2fa 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.",