diff options
author | Simo Sorce <idra@samba.org> | 2011-03-24 08:23:48 -0400 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2011-03-24 14:57:12 -0400 |
commit | dbe957e48fec13aec39b7c2675cd4b7cde55d9d0 (patch) | |
tree | 79138b131ed9000dfc1957f6cad4326048e5bc18 | |
parent | 5ebf0072336ece5acf120bcdeb6612445fa059f1 (diff) | |
download | samba-dbe957e48fec13aec39b7c2675cd4b7cde55d9d0.tar.gz samba-dbe957e48fec13aec39b7c2675cd4b7cde55d9d0.tar.bz2 samba-dbe957e48fec13aec39b7c2675cd4b7cde55d9d0.zip |
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.
-rw-r--r-- | source3/rpc_server/epmapper/srv_epmapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/epmapper/srv_epmapper.c b/source3/rpc_server/epmapper/srv_epmapper.c index f7f3617f15..b9ddd0583f 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; |