cifs.upcall: allocate a talloc context for smb_krb5_unparse_name
authorJeff Layton <jlayton@redhat.com>
Tue, 16 Feb 2010 14:16:42 +0000 (09:16 -0500)
committerKarolin Seeger <kseeger@samba.org>
Wed, 17 Feb 2010 13:46:13 +0000 (14:46 +0100)
commit01750852c1e9983b9d59a73d412101b4e0eb81a1
treea962f2fb8720089f65ce686a36a012a0758e866b
parentf6a7e9eadf85b19ec0ccca513a261bcad0bcf048
cifs.upcall: allocate a talloc context for smb_krb5_unparse_name

cifs.upcall calls smb_krb5_unparse_name with a NULL talloc context.
Older versions of this function though will conditionally use
SMB_REALLOC instead of TALLOC_REALLOC when a NULL context is passed
in. To make it more consistent, just spawn a talloc context that
we can pass into this function.

Resolves:
https://bugzilla.redhat.com/show_bug.cgi?id=565446
https://bugzilla.samba.org/show_bug.cgi?id=6868

Reported-by: Ludek Finstrle <luf@seznam.cz>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit a8cc2fa09ed43a167f62711bef363a5ac335dc78)

Fix bug #6868 (make bin/cifs.upcall fails).
client/cifs.upcall.c