[asterisk-commits] kpfleming: branch 1.2 r45119 - /branches/1.2/acl.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Oct 13 15:57:42 MST 2006


Author: kpfleming
Date: Fri Oct 13 17:57:42 2006
New Revision: 45119

URL: http://svn.digium.com/view/asterisk?rev=45119&view=rev
Log:
don't drop the entire permit/deny list when an attempt is made to add an invalid entry (BE-92)

Modified:
    branches/1.2/acl.c

Modified: branches/1.2/acl.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/acl.c?rev=45119&r1=45118&r2=45119&view=diff
==============================================================================
--- branches/1.2/acl.c (original)
+++ branches/1.2/acl.c Fri Oct 13 17:57:42 2006
@@ -176,12 +176,12 @@
 		} else if (!inet_aton(nm, &ha->netmask)) {
 			ast_log(LOG_WARNING, "%s is not a valid netmask\n", nm);
 			free(ha);
-			return path;
+			return ret;
 		}
 		if (!inet_aton(tmp, &ha->netaddr)) {
 			ast_log(LOG_WARNING, "%s is not a valid IP\n", tmp);
 			free(ha);
-			return path;
+			return ret;
 		}
 		ha->netaddr.s_addr &= ha->netmask.s_addr;
 		if (!strncasecmp(sense, "p", 1)) {



More information about the asterisk-commits mailing list