Merged revisions 47748 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Thu, 16 Nov 2006 17:53:58 +0000 (17:53 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 16 Nov 2006 17:53:58 +0000 (17:53 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47748 | file | 2006-11-16 12:52:48 -0500 (Thu, 16 Nov 2006) | 2 lines

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/trunk@47749 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_meetme.c

index ce91129..d094bb1 100644 (file)
@@ -2953,6 +2953,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);
 
        if (option_debug)