From 99857cb020ea90b2a81e6ca7a34c1ee56ffd8d6e Mon Sep 17 00:00:00 2001 From: file Date: Thu, 16 Nov 2006 17:52:48 +0000 Subject: 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 --- apps/app_meetme.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.3