From: Simo Sorce Date: Thu, 24 Mar 2011 12:23:48 +0000 (-0400) Subject: s3-epmapper: Fix allocation of data on the wrong context X-Git-Tag: ldb-1.1.0~560 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dbe957e48fec13aec39b7c2675cd4b7cde55d9d0;p=thirdparty%2Fsamba.git s3-epmapper: Fix allocation of data on the wrong context p->mem_ctx is the short-lived per request context, while this data is long lived, allocate on p instead. --- diff --git a/source3/rpc_server/epmapper/srv_epmapper.c b/source3/rpc_server/epmapper/srv_epmapper.c index f7f3617f15d..b9ddd0583f1 100644 --- a/source3/rpc_server/epmapper/srv_epmapper.c +++ b/source3/rpc_server/epmapper/srv_epmapper.c @@ -384,7 +384,7 @@ error_status_t _epm_Insert(struct pipes_struct *p, if (r->in.num_ents > 0) { struct dcesrv_ep_entry_list *el; - el = talloc_zero(p->mem_ctx, struct dcesrv_ep_entry_list); + el = talloc_zero(p, struct dcesrv_ep_entry_list); if (el == NULL) { rc = EPMAPPER_STATUS_NO_MEMORY; goto done;