git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a01dc30
)
Make name_buffer in NetGetJoinInformation() talloced.
author
Günther Deschner
<gd@samba.org>
Tue, 8 Jan 2008 10:54:51 +0000
(11:54 +0100)
committer
Günther Deschner
<gd@samba.org>
Tue, 8 Jan 2008 10:59:01 +0000
(11:59 +0100)
Guenther
(This used to be commit
421905fb608df6736944ac21ac67abee24991521
)
source3/lib/netapi/joindomain.c
patch
|
blob
|
history
diff --git
a/source3/lib/netapi/joindomain.c
b/source3/lib/netapi/joindomain.c
index aa8ec6e0b5f33dd15a034c25dd7a85e463477239..e4fb63eebb55541743aef65b0fb10ed552d403be 100644
(file)
--- a/
source3/lib/netapi/joindomain.c
+++ b/
source3/lib/netapi/joindomain.c
@@
-437,9
+437,9
@@
static WERROR NetGetJoinInformationLocal(struct libnetapi_ctx *ctx,
uint16_t *name_type)
{
if ((lp_security() == SEC_ADS) && lp_realm()) {
- *name_buffer =
SMB_STRDUP(
lp_realm());
+ *name_buffer =
talloc_strdup(ctx,
lp_realm());
} else {
- *name_buffer =
SMB_STRDUP(
lp_workgroup());
+ *name_buffer =
talloc_strdup(ctx,
lp_workgroup());
}
if (!*name_buffer) {
return WERR_NOMEM;