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
/* Find conference */
sla = sla2 = ASTOBJ_CONTAINER_FIND(&slas, data);
+
+ if (!sla2)
+ return AST_DEVICE_INVALID;
+
ASTOBJ_UNREF(sla2, sla_destroy);
if (option_debug)