[asterisk-commits] file: branch file/pimp_sip_location r382780 - /team/file/pimp_sip_location/re...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Mar 9 17:12:57 CST 2013


Author: file
Date: Sat Mar  9 17:12:54 2013
New Revision: 382780

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=382780
Log:
Remove assumption that static contacts will be present.

Modified:
    team/file/pimp_sip_location/res/res_sip/location.c

Modified: team/file/pimp_sip_location/res/res_sip/location.c
URL: http://svnview.digium.com/svn/asterisk/team/file/pimp_sip_location/res/res_sip/location.c?view=diff&rev=382780&r1=382779&r2=382780
==============================================================================
--- team/file/pimp_sip_location/res/res_sip/location.c (original)
+++ team/file/pimp_sip_location/res/res_sip/location.c Sat Mar  9 17:12:54 2013
@@ -111,7 +111,9 @@
 	ao2_callback(contacts, OBJ_NOLOCK | OBJ_NODATA | OBJ_MULTIPLE | OBJ_UNLINK, contact_expire, NULL);
 
 	/* Add any static contacts from the AOR */
-	ao2_callback(aor->static_contacts, OBJ_NOLOCK | OBJ_NODATA, contact_link_static, contacts);
+	if (aor->static_contacts) {
+		ao2_callback(aor->static_contacts, OBJ_NOLOCK | OBJ_NODATA, contact_link_static, contacts);
+	}
 
 	return contacts;
 }




More information about the asterisk-commits mailing list