diff options
author | Andrew Bartlett <abartlet@samba.org> | 2006-01-10 09:43:00 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:50:02 -0500 |
commit | 195f5c3635159013fa14fbe0d34283b8237b0667 (patch) | |
tree | 9070d41f521bf839cca125da2181e7e91e54969f /source4/scripting | |
parent | ca90a75ba03d8fd64293a16d0794b8998016a006 (diff) | |
download | samba-195f5c3635159013fa14fbe0d34283b8237b0667.tar.gz samba-195f5c3635159013fa14fbe0d34283b8237b0667.tar.bz2 samba-195f5c3635159013fa14fbe0d34283b8237b0667.zip |
r12822: Given that talloc gives us this extra level of safety, use it.
Andrew Bartlett
(This used to be commit a6028558dc19b0d105b1bfe4126a2b24afaf8dd2)
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/ejs/smbcalls_ldb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/ejs/smbcalls_ldb.c b/source4/scripting/ejs/smbcalls_ldb.c index 39698947d7..1a224605ee 100644 --- a/source4/scripting/ejs/smbcalls_ldb.c +++ b/source4/scripting/ejs/smbcalls_ldb.c @@ -399,12 +399,12 @@ static int ejs_ldbConnect(MprVarHandle eid, int argc, char **argv) credentials = mprGetProperty(this, "credentials", NULL); if (credentials) { - creds = mprGetPtr(credentials, "creds"); + creds = talloc_get_type(mprGetPtr(credentials, "creds"), struct cli_credentials); } session = mprGetProperty(this, "session_info", NULL); if (session) { - session_info = mprGetPtr(session, "session_info"); + session_info = talloc_get_type(mprGetPtr(session, "session_info"), struct auth_session_info); } dbfile = argv[0]; |