[svn-commits] oej: trunk r53914 - /trunk/main/acl.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Sun Feb 11 12:15:56 MST 2007


Author: oej
Date: Sun Feb 11 13:15:55 2007
New Revision: 53914

URL: http://svn.digium.com/view/asterisk?view=rev&rev=53914
Log:
Fix debug handling in acl.c

Modified:
    trunk/main/acl.c

Modified: trunk/main/acl.c
URL: http://svn.digium.com/view/asterisk/trunk/main/acl.c?view=diff&rev=53914&r1=53913&r2=53914
==============================================================================
--- trunk/main/acl.c (original)
+++ trunk/main/acl.c Sun Feb 11 13:15:55 2007
@@ -212,7 +212,8 @@
 		/* DEBUG */
 		ast_copy_string(iabuf, ast_inet_ntoa(sin->sin_addr), sizeof(iabuf));
 		ast_copy_string(iabuf2, ast_inet_ntoa(ha->netaddr), sizeof(iabuf2));
-		ast_log(LOG_DEBUG, "##### Testing %s with %s\n", iabuf, iabuf2);
+		if (option_debug)
+			ast_log(LOG_DEBUG, "##### Testing %s with %s\n", iabuf, iabuf2);
 		/* For each rule, if this address and the netmask = the net address
 		   apply the current rule */
 		if ((sin->sin_addr.s_addr & ha->netmask.s_addr) == ha->netaddr.s_addr)



More information about the svn-commits mailing list