diff options
author | David Disseldorp <ddiss@samba.org> | 2013-10-16 21:52:29 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2013-11-20 08:16:37 +0100 |
commit | a299de85ab6f1901a61d696522522496fb154434 (patch) | |
tree | e1411ff4bccddbb698675242b9f90e23f3c7cfa0 /source3 | |
parent | de424133653c00a2a95017be15a25cbb0b3c0524 (diff) | |
download | samba-a299de85ab6f1901a61d696522522496fb154434.tar.gz samba-a299de85ab6f1901a61d696522522496fb154434.tar.xz samba-a299de85ab6f1901a61d696522522496fb154434.zip |
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>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/param/loadparm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index d3fb839897a..1396a344459 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -5274,7 +5274,7 @@ void lp_copy_service(int snum, const char *new_name) const char *lp_printername(TALLOC_CTX *ctx, int snum) { - const char *ret = lp__printername(talloc_tos(), snum); + const char *ret = lp__printername(ctx, snum); if (ret == NULL || *ret == '\0') { ret = lp_const_servicename(snum); } |