aboutsummaryrefslogtreecommitdiffstats
path: root/main/acl.c
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-11 19:15:55 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-11 19:15:55 +0000
commit6fc0c809bb95afde61872ca8e5a0ebc8d894711e (patch)
treeeba7384a215a68404bb61f1c5ffdee17bbd7804b /main/acl.c
parent9e58b235fcaf10058e44006cba4aad77283450ef (diff)
Fix debug handling in acl.c
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@53914 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/acl.c')
-rw-r--r--main/acl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/acl.c b/main/acl.c
index e2caa2eee..a3d60cb0d 100644
--- a/main/acl.c
+++ b/main/acl.c
@@ -212,7 +212,8 @@ int ast_apply_ha(struct ast_ha *ha, struct sockaddr_in *sin)
/* 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)