[asterisk-commits] mmichelson: branch mmichelson/acl-v6 r276254 - /team/mmichelson/acl-v6/main/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jul 13 18:06:05 CDT 2010
Author: mmichelson
Date: Tue Jul 13 18:05:54 2010
New Revision: 276254
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=276254
Log:
Fix inverted logic when calling ast_sockaddr_parse on netmasks.
Modified:
team/mmichelson/acl-v6/main/acl.c
Modified: team/mmichelson/acl-v6/main/acl.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/acl-v6/main/acl.c?view=diff&rev=276254&r1=276253&r2=276254
==============================================================================
--- team/mmichelson/acl-v6/main/acl.c (original)
+++ team/mmichelson/acl-v6/main/acl.c Tue Jul 13 18:05:54 2010
@@ -461,7 +461,7 @@
int mask_is_v4;
struct ast_sockaddr mask_sock;
/* Mask is of x.x.x.x or x:x:x:x:x:x:x:x variety */
- if (ast_sockaddr_parse(&mask_sock, mask, PARSE_PORT_FORBID)) {
+ if (!ast_sockaddr_parse(&mask_sock, mask, PARSE_PORT_FORBID)) {
ast_log(LOG_WARNING, "Invalid netmask: %s\n", mask);
ast_free_ha(ha);
*error = 1;
More information about the asterisk-commits
mailing list