loadparm: Allocate service->copymap in service memory context
authorKamen Mazdrashki <kamenim@samba.org>
Wed, 10 Sep 2014 01:14:42 +0000 (03:14 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 1 Oct 2014 09:21:38 +0000 (11:21 +0200)
commit122fdf5ea4fc5b9518404b5149a0bfc88dde2768
tree211c70e935487289739dffd8e965d7d6c5bd6160
parent3419a20075625bb9115f86031c1e89b54298e8e9
loadparm: Allocate service->copymap in service memory context

This patch adds a restriction that target service structure
must be a valid TALLOC_CTX memory context.

I have traced all call paths and at the moment this is the case,
pservice parameter layways gets allocated on TALLOC_CTX.

Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/param/loadparm.c