summaryrefslogtreecommitdiff
path: root/acl.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-01-18 13:58:33 +0000
committerMark Spencer <markster@digium.com>2005-01-18 13:58:33 +0000
commit5373fc0d2b0b571326cfe8f6ac973cbc8464a84a (patch)
tree39789a8660ad5d7920f877629d2c74b7965f3870 /acl.c
parentb2c110329f713ffe70e285eb759de898a874a0af (diff)
Fix bindaddr on IAX (bug #3366)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4833 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'acl.c')
-rwxr-xr-xacl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/acl.c b/acl.c
index 1c06ff8db..dbc2065dd 100755
--- a/acl.c
+++ b/acl.c
@@ -378,6 +378,7 @@ struct ast_netsock *ast_netsock_bind(struct ast_netsock_list *list, struct io_co
if ((portno = atoi(port)) > 0)
sin.sin_port = htons(portno);
}
+ inet_aton(tmp, &sin.sin_addr);
return ast_netsock_bindaddr(list, ioc, &sin, tos, callback, data);
} else
ast_log(LOG_WARNING, "Out of memory!\n");