]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't unreference the SLA object if there is no SLA object in the devicestate callbac...
authorJoshua Colp <jcolp@digium.com>
Thu, 16 Nov 2006 17:52:48 +0000 (17:52 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 16 Nov 2006 17:52:48 +0000 (17:52 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47748 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_meetme.c

index 82d1a3416b33b2dfb5119a1b362e10eebc3893af..c67d6e94d01f005d7b81ec652cc6c9e5e23f9ba6 100644 (file)
@@ -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);