From: Joshua Colp Date: Thu, 16 Nov 2006 17:52:48 +0000 (+0000) Subject: Don't unreference the SLA object if there is no SLA object in the devicestate callbac... X-Git-Tag: 1.4.0-beta4~100 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ee182a4b0243d6580f710240e46613b633601020;p=thirdparty%2Fasterisk.git 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 --- 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);