[asterisk-commits] kharwell: branch kharwell/pimp_sip_security r389308 - /team/kharwell/pimp_sip...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon May 20 14:40:45 CDT 2013


Author: kharwell
Date: Mon May 20 14:40:41 2013
New Revision: 389308

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=389308
Log:
added ref to faux endpoint to make sure it sticks around

Modified:
    team/kharwell/pimp_sip_security/res/res_sip/sip_distributor.c

Modified: team/kharwell/pimp_sip_security/res/res_sip/sip_distributor.c
URL: http://svnview.digium.com/svn/asterisk/team/kharwell/pimp_sip_security/res/res_sip/sip_distributor.c?view=diff&rev=389308&r1=389307&r2=389308
==============================================================================
--- team/kharwell/pimp_sip_security/res/res_sip/sip_distributor.c (original)
+++ team/kharwell/pimp_sip_security/res/res_sip/sip_distributor.c Mon May 20 14:40:41 2013
@@ -130,6 +130,7 @@
 static struct ast_sip_endpoint *create_artificial_endpoint(void)
 {
 	if (artificial_endpoint) {
+		ao2_ref(artificial_endpoint, +1);
 		return artificial_endpoint;
 	}
 
@@ -137,7 +138,7 @@
 		      ast_sip_get_sorcery(), "endpoint", NULL))) {
 		return NULL;
 	}
-	/* keep around until module is unloaded */
+
 	ao2_ref(artificial_endpoint, +1);
 
 	artificial_endpoint->type = ARTIFICIAL;




More information about the asterisk-commits mailing list