summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-12-28 22:54:23 +1100
committerStefan Metzmacher <metze@samba.org>2012-01-11 08:25:19 +0100
commit6412ff84ce473536e711c9642655e12fe7fd2fba (patch)
tree88c2ef0932cc54d3db2f25f1c3920a99f681472c
parent7fb82a5a247b95bcd981574d6c0db013c954e026 (diff)
downloadsamba-6412ff84ce473536e711c9642655e12fe7fd2fba.tar.gz
samba-6412ff84ce473536e711c9642655e12fe7fd2fba.tar.bz2
samba-6412ff84ce473536e711c9642655e12fe7fd2fba.zip
s3-librpc Return user principal name on supplied mem_ctx
Signed-off-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--source3/librpc/crypto/gse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/librpc/crypto/gse.c b/source3/librpc/crypto/gse.c
index 9eaef5aa44..85643e88e6 100644
--- a/source3/librpc/crypto/gse.c
+++ b/source3/librpc/crypto/gse.c
@@ -690,9 +690,9 @@ NTSTATUS gse_get_client_name(struct gse_context *gse_ctx,
return NT_STATUS_INTERNAL_ERROR;
}
- *cli_name = talloc_strndup(talloc_tos(),
- (char *)name_buffer.value,
- name_buffer.length);
+ *cli_name = talloc_strndup(mem_ctx,
+ (char *)name_buffer.value,
+ name_buffer.length);
gss_maj = gss_release_buffer(&gss_min, &name_buffer);