summaryrefslogtreecommitdiff
path: root/source4/lib/appweb/ejs
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-08-07 06:16:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:31:28 -0500
commitf13fbd7e6fcdf8fe6de2d9be2fd453fe22fc5e16 (patch)
treea8cf911f501e23a904b1e65beb42cdfdbc7c8300 /source4/lib/appweb/ejs
parentf9e0b8aca502357d64f4816204ddcb2c7e876c8d (diff)
downloadsamba-f13fbd7e6fcdf8fe6de2d9be2fd453fe22fc5e16.tar.gz
samba-f13fbd7e6fcdf8fe6de2d9be2fd453fe22fc5e16.tar.bz2
samba-f13fbd7e6fcdf8fe6de2d9be2fd453fe22fc5e16.zip
r9173: catch ep->local being NULL
(This used to be commit 9f75bc3ca061abbfeb6ac9fc60834b8c1f6e2c4d)
Diffstat (limited to 'source4/lib/appweb/ejs')
-rw-r--r--source4/lib/appweb/ejs/ejsLib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/lib/appweb/ejs/ejsLib.c b/source4/lib/appweb/ejs/ejsLib.c
index eed6d67fb4..b24b2b013c 100644
--- a/source4/lib/appweb/ejs/ejsLib.c
+++ b/source4/lib/appweb/ejs/ejsLib.c
@@ -211,7 +211,9 @@ void ejsCloseEngine(EjsId eid)
mprDestroyVar(&ep->result);
mprDestroyVar(&ep->tokenNumber);
- mprDeleteProperty(ep->local, "local");
+ if (ep->local) {
+ mprDeleteProperty(ep->local, "local");
+ }
mprDeleteProperty(ep->global, "this");
mprDeleteProperty(ep->global, "global");