[asterisk-commits] mmichelson: branch group/pimp_my_sip r382229 - /team/group/pimp_my_sip/res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Feb 28 10:50:30 CST 2013


Author: mmichelson
Date: Thu Feb 28 10:50:27 2013
New Revision: 382229

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=382229
Log:
Initialize pass/fail result of ACL check.

Calls were being denied because this variable was used
uninitialized. This should prevent false positives in the ACL checking.


Modified:
    team/group/pimp_my_sip/res/res_sip_acl.c

Modified: team/group/pimp_my_sip/res/res_sip_acl.c
URL: http://svnview.digium.com/svn/asterisk/team/group/pimp_my_sip/res/res_sip_acl.c?view=diff&rev=382229&r1=382228&r2=382229
==============================================================================
--- team/group/pimp_my_sip/res/res_sip_acl.c (original)
+++ team/group/pimp_my_sip/res/res_sip_acl.c Thu Feb 28 10:50:27 2013
@@ -120,7 +120,7 @@
 
 static pj_bool_t acl_on_rx_msg(pjsip_rx_data *rdata)
 {
-	int forbidden;
+	int forbidden = 0;
 	struct ao2_container *acls = ast_sorcery_retrieve_by_fields(ast_sip_get_sorcery(), "acl", AST_RETRIEVE_FLAG_MULTIPLE | AST_RETRIEVE_FLAG_ALL, NULL);
 	struct sip_acl *matched_acl;
 	if (!acls) {




More information about the asterisk-commits mailing list