summaryrefslogtreecommitdiff
path: root/source3/librpc/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'source3/librpc/crypto')
-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);