summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-01-19 17:06:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:43:51 -0500
commit15446aadafbea9cf9d42ee64f45dd5de8d3d0e1b (patch)
tree250becb9e1e3b3f9961054fce03760f2b04cd618 /source4/scripting
parent8309f2c35b152a82885a5f5352013d39ec349097 (diff)
downloadsamba-15446aadafbea9cf9d42ee64f45dd5de8d3d0e1b.tar.gz
samba-15446aadafbea9cf9d42ee64f45dd5de8d3d0e1b.tar.bz2
samba-15446aadafbea9cf9d42ee64f45dd5de8d3d0e1b.zip
r20910: fix crash bug
metze (This used to be commit e668d3bd6955f0bd4e37560925c4107fd870c02f)
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/ejs/ejsnet/net_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/ejs/ejsnet/net_user.c b/source4/scripting/ejs/ejsnet/net_user.c
index 24fc46f842..9a4f9473f6 100644
--- a/source4/scripting/ejs/ejsnet/net_user.c
+++ b/source4/scripting/ejs/ejsnet/net_user.c
@@ -77,7 +77,7 @@ int ejs_net_userman(MprVarHandle eid, int argc, struct MprVar **argv)
obj = mprInitObject(eid, "NetUsrCtx", argc, argv);
/* we need to make a copy of the string for this object */
- userman_domain = talloc_strdup(obj, userman_domain);
+ userman_domain = talloc_strdup(ctx, userman_domain);
/* add properties */
mprSetPtrChild(obj, "ctx", ctx);