mirror of
https://github.com/samba-team/samba.git
synced 2025-08-05 12:22:11 +03:00
r7078: - fix an uninitialised variable in smbscript
- fixed handle passing in the smb/ejs interface calls, so they can be called
safely from esp
(This used to be commit 45ea1b6441
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
fe17411203
commit
09e00bbdc1
@ -252,8 +252,8 @@ failed:
|
|||||||
*/
|
*/
|
||||||
void smb_setup_ejs_functions(void)
|
void smb_setup_ejs_functions(void)
|
||||||
{
|
{
|
||||||
ejsDefineStringCFunction(-1, "lpGet", ejs_lpGet, NULL, 0);
|
ejsDefineStringCFunction(-1, "lpGet", ejs_lpGet, NULL, MPR_VAR_SCRIPT_HANDLE);
|
||||||
ejsDefineStringCFunction(-1, "lpServices", ejs_lpServices, NULL, 0);
|
ejsDefineStringCFunction(-1, "lpServices", ejs_lpServices, NULL, MPR_VAR_SCRIPT_HANDLE);
|
||||||
ejsDefineCFunction(-1, "typeof", ejs_typeof, NULL, 0);
|
ejsDefineCFunction(-1, "typeof", ejs_typeof, NULL, MPR_VAR_SCRIPT_HANDLE);
|
||||||
ejsDefineCFunction(-1, "ldbSearch", ejs_ldbSearch, NULL, 0);
|
ejsDefineCFunction(-1, "ldbSearch", ejs_ldbSearch, NULL, MPR_VAR_SCRIPT_HANDLE);
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ void ejs_exception(const char *reason)
|
|||||||
int main(int argc, const char *argv[])
|
int main(int argc, const char *argv[])
|
||||||
{
|
{
|
||||||
EjsId eid;
|
EjsId eid;
|
||||||
EjsHandle handle;
|
EjsHandle handle = 0;
|
||||||
MprVar result;
|
MprVar result;
|
||||||
char *emsg;
|
char *emsg;
|
||||||
TALLOC_CTX *mem_ctx = talloc_new(NULL);
|
TALLOC_CTX *mem_ctx = talloc_new(NULL);
|
||||||
|
Reference in New Issue
Block a user