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)
committerGünther Deschner <gd@samba.org>
Wed, 17 Feb 2010 11:15:50 +0000 (12:15 +0100)
commita8cc2fa09ed43a167f62711bef363a5ac335dc78
tree4df98efc653eb1af150f39fe4f0392cdb0a0a14b
parent8aef63d2430a3e96b1dbf3f6595bdf78f703c778
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>
client/cifs.upcall.c