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 | |
parent | ca90a75ba03d8fd64293a16d0794b8998016a006 (diff) | |
download | samba-195f5c3635159013fa14fbe0d34283b8237b0667.tar.gz samba-195f5c3635159013fa14fbe0d34283b8237b0667.tar.xz samba-195f5c3635159013fa14fbe0d34283b8237b0667.zip |
r12822: Given that talloc gives us this extra level of safety, use it.
Andrew Bartlett
(This used to be commit a6028558dc19b0d105b1bfe4126a2b24afaf8dd2)
-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 39698947d7b..1a224605eec 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]; |