[asterisk-commits] kpfleming: branch 1.4 r45125 - in /branches/1.4: ./ main/acl.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Oct 13 16:02:49 MST 2006


Author: kpfleming
Date: Fri Oct 13 18:02:48 2006
New Revision: 45125

URL: http://svn.digium.com/view/asterisk?rev=45125&view=rev
Log:
------------------------------------------------------------------------
r45119 | kpfleming | 2006-10-13 17:57:42 -0500 (Fri, 13 Oct 2006) | 2 lines

don't drop the entire permit/deny list when an attempt is made to add an invalid entry (BE-92)

------------------------------------------------------------------------

Modified:
    branches/1.4/   (props changed)
    branches/1.4/main/acl.c

Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.

Modified: branches/1.4/main/acl.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/acl.c?rev=45125&r1=45124&r2=45125&view=diff
==============================================================================
--- branches/1.4/main/acl.c (original)
+++ branches/1.4/main/acl.c Fri Oct 13 18:02:48 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