From ee182a4b0243d6580f710240e46613b633601020 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Thu, 16 Nov 2006 17:52:48 +0000 Subject: [PATCH] Don't unreference the SLA object if there is no SLA object in the devicestate callback. (issue #8354 reported by loloski) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47748 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_meetme.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/app_meetme.c b/apps/app_meetme.c index 82d1a3416b..c67d6e94d0 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);