Fix bindaddr on IAX (bug #3366)
authorMark Spencer <markster@digium.com>
Tue, 18 Jan 2005 13:58:33 +0000 (13:58 +0000)
committerMark Spencer <markster@digium.com>
Tue, 18 Jan 2005 13:58:33 +0000 (13:58 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4833 65c4cc65-6c06-0410-ace0-fbb531ad65f3

acl.c

diff --git a/acl.c b/acl.c
index 1c06ff8..dbc2065 100755 (executable)
--- 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");