cifs.upcall: allocate a talloc context for smb_krb5_unparse_name
commit7363b088c5bd41f6d3502c154ab45d87197f6943
authorJeff Layton <jlayton@redhat.com>
Tue, 16 Feb 2010 14:16:42 +0000 (16 09:16 -0500)
committerKarolin Seeger <kseeger@samba.org>
Thu, 18 Feb 2010 09:43:14 +0000 (18 10:43 +0100)
tree8f49b794f32cd46d7c757f85d7600585c632040f
parent01c21d78cf93277658e05450a8937bcefc53b3b4
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).
(cherry picked from commit 01750852c1e9983b9d59a73d412101b4e0eb81a1)
client/cifs.upcall.c