Commit fc898f1f authored by Greg Stein's avatar Greg Stein
Browse files

*) rename apr_memdup() to apr_pmemdup()

*) optimize the allocation size in apr_pstrndup()


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88104 13f79535-47bb-0310-9956-ffa450edef68
parent 9174184e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -267,7 +267,7 @@ static apr_status_t tls_in_filter(ap_filter_t *f,apr_bucket_brigade *pbbOut,
	    apr_bucket *pbktOut;
	    char *pbuf;

	    pbuf=apr_memdup(pCtx->pInputFilter->c->pool,buf,n);
	    pbuf=apr_pmemdup(pCtx->pInputFilter->c->pool,buf,n);
	    // XXX: should we use a heap bucket instead? Or a transient (in
	    // which case we need a separate brigade for each bucket)?
	    pbktOut=apr_bucket_pool_create(pbuf,n,pCtx->pInputFilter->c->pool);