git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fb82a5
)
s3-librpc Return user principal name on supplied mem_ctx
author
Andrew Bartlett
<abartlet@samba.org>
Wed, 28 Dec 2011 11:54:23 +0000
(22:54 +1100)
committer
Stefan Metzmacher
<metze@samba.org>
Wed, 11 Jan 2012 07:25:19 +0000
(08:25 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/librpc/crypto/gse.c
patch
|
blob
|
history
diff --git
a/source3/librpc/crypto/gse.c
b/source3/librpc/crypto/gse.c
index 9eaef5aa44d4cc6db8070a6490ba769c80e1a837..85643e88e620ca30d18747908c206db54828b478 100644
(file)
--- 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);