Commit 23f14193 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

make sure binding listening sockets to specific addresses.

previously msgq accepts connection from any address, which is not good.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@284 e5f2f494-b856-4b98-b285-d166d9295462
parent 439ce054
......@@ -1136,9 +1136,10 @@ lsock_open(void)
isc_socket_t *sock;
isc_sockaddr_t sa;
isc_result_t result;
struct in_addr ina;
isc_sockaddr_any(&sa);
isc_sockaddr_setport(&sa, msgq_port);
RUNTIME_CHECK(inet_pton(AF_INET, addrs[i], &ina) == 1);
isc_sockaddr_fromin(&sa, &ina, msgq_port);
sock = NULL;
RUNTIME_CHECK(isc_socket_create(socketmgr,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment