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:47:12 +0000 (14:47 +0100)
commitfa8d57323c0ff4f92f0aca57b41d237340121720
treeb5b1651661359675a99661018c5061f5123e88ad
parentd3738dbe1cabb0ad0acf5f8c9b5e8106285ca9a1
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).
source3/client/cifs.upcall.c