summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-01-08 11:54:51 +0100
committerGünther Deschner <gd@samba.org>2008-01-08 11:59:01 +0100
commit200bba3ad6592952041daa9da9805941c6dd03ba (patch)
tree2e3c7da0b9e0a49acfe38ab7338dd12c183b9147 /source3/lib
parenta01dc30db7cb16c794f5daf23ad2df607f891626 (diff)
downloadsamba-200bba3ad6592952041daa9da9805941c6dd03ba.tar.gz
samba-200bba3ad6592952041daa9da9805941c6dd03ba.tar.bz2
samba-200bba3ad6592952041daa9da9805941c6dd03ba.zip
Make name_buffer in NetGetJoinInformation() talloced.
Guenther (This used to be commit 421905fb608df6736944ac21ac67abee24991521)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/netapi/joindomain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/netapi/joindomain.c b/source3/lib/netapi/joindomain.c
index aa8ec6e0b5..e4fb63eebb 100644
--- 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;