]> granicus.if.org Git - apache/commitdiff
liveprop namespace indexes are 1-based. make room in the marks array.
authorGreg Stein <gstein@apache.org>
Mon, 10 Jul 2000 06:56:29 +0000 (06:56 +0000)
committerGreg Stein <gstein@apache.org>
Mon, 10 Jul 2000 06:56:29 +0000 (06:56 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85802 13f79535-47bb-0310-9956-ffa450edef68

modules/dav/main/props.c

index 6db4719c8a5a72cb0f78d6e60bd77129c811b39a..535bea20a26e16e7f84d887688818d3c420e745e 100644 (file)
@@ -1202,7 +1202,7 @@ dav_get_props_result dav_get_props(dav_propdb *propdb, ap_xml_doc *doc)
     marks_input = ap_pcalloc(propdb->p, propdb->ns_xlate->nelts);
 
     /* same for the liveprops */
-    marks_liveprop = ap_pcalloc(propdb->p, dav_get_liveprop_ns_count());
+    marks_liveprop = ap_pcalloc(propdb->p, dav_get_liveprop_ns_count() + 1);
 
     for (elem = elem->first_child; elem; elem = elem->next) {
        dav_datum key;