loadparm: use lp_printername ctx param instead of tos
commita299de85ab6f1901a61d696522522496fb154434
authorDavid Disseldorp <ddiss@samba.org>
Wed, 16 Oct 2013 19:52:29 +0000 (16 21:52 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 20 Nov 2013 07:16:37 +0000 (20 08:16 +0100)
treee1411ff4bccddbb698675242b9f90e23f3c7cfa0
parentde424133653c00a2a95017be15a25cbb0b3c0524
loadparm: use lp_printername ctx param instead of tos

lp_printername() takes a TALLOC_CTX argument, but proceeds to use
talloc_tos() in a subsequent lp__printername call. Fix it to use the
parameter - most callers use talloc_tos() as the argument, the others
have a temporary context around.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source3/param/loadparm.c