From 2ed26253c1cc84fce6d9a00c642f3e7baffb5c80 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 7 Aug 2005 06:13:55 +0000 Subject: r9171: - support putting a credentials object in a rpc pipe object to allow authentication with other than the command line credentials in a rpc pipe (This used to be commit aae05ebc9c3dc7ad367aed09c54b85184ba7a82e) --- source4/scripting/ejs/mprutil.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'source4/scripting/ejs/mprutil.c') diff --git a/source4/scripting/ejs/mprutil.c b/source4/scripting/ejs/mprutil.c index 657078e7c7..748f28c681 100644 --- a/source4/scripting/ejs/mprutil.c +++ b/source4/scripting/ejs/mprutil.c @@ -357,15 +357,14 @@ void mprSetPtrChild(struct MprVar *v, const char *propname, const void *p) */ void *mprGetPtr(struct MprVar *v, const char *propname) { - struct MprVar *val; - val = mprGetProperty(v, propname, NULL); - if (val == NULL) { + NTSTATUS status = mprGetVar(&v, propname); + if (!NT_STATUS_IS_OK(status)) { return NULL; } - if (val->type != MPR_TYPE_PTR) { + if (v->type != MPR_TYPE_PTR) { return NULL; } - return val->ptr; + return v->ptr; } /* -- cgit