aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_meetme.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-16 17:52:48 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-16 17:52:48 +0000
commit99857cb020ea90b2a81e6ca7a34c1ee56ffd8d6e (patch)
tree667f3c3e4d66345241c238cf52aa3c058c351525 /apps/app_meetme.c
parente8353f079980232587ab30b525c3e66992dea6a9 (diff)
Don't unreference the SLA object if there is no SLA object in the devicestate callback. (issue #8354 reported by loloski)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47748 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_meetme.c')
-rw-r--r--apps/app_meetme.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_meetme.c b/apps/app_meetme.c
index 82d1a3416..c67d6e94d 100644
--- a/apps/app_meetme.c
+++ b/apps/app_meetme.c
@@ -2930,6 +2930,10 @@ static int slastate(const char *data)
/* Find conference */
sla = sla2 = ASTOBJ_CONTAINER_FIND(&slas, data);
+
+ if (!sla2)
+ return AST_DEVICE_INVALID;
+
ASTOBJ_UNREF(sla2, sla_destroy);
ast_log(LOG_DEBUG, "for '%s' conf = %p, sla = %p\n", data, conf, sla);