[asterisk-commits] rmudgett: branch group/CCSS r244644 - /team/group/CCSS/main/ccss.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Feb 3 17:45:03 CST 2010


Author: rmudgett
Date: Wed Feb  3 17:44:59 2010
New Revision: 244644

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=244644
Log:
You cannot return a reference to a monitor if it does not exist.

Modified:
    team/group/CCSS/main/ccss.c

Modified: team/group/CCSS/main/ccss.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/main/ccss.c?view=diff&rev=244644&r1=244643&r2=244644
==============================================================================
--- team/group/CCSS/main/ccss.c (original)
+++ team/group/CCSS/main/ccss.c Wed Feb  3 17:44:59 2010
@@ -2812,10 +2812,11 @@
 	AST_DLLIST_LOCK(core_instance->monitors);
 	AST_DLLIST_TRAVERSE(core_instance->monitors, monitor_iter, next) {
 		if (!strcmp(monitor_iter->interface->name, device_name)) {
+			/* Found a monitor. */
+			cc_ref(monitor_iter, "Hand the requester of the monitor a reference");
 			break;
 		}
 	}
-	cc_ref(monitor_iter, "Hand the requester of the monitor a reference");
 	AST_DLLIST_UNLOCK(core_instance->monitors);
 	cc_unref(core_instance, "Done with core instance ref in ast_cc_get_monitor_by_recall_core_id");
 	return monitor_iter;




More information about the asterisk-commits mailing list