2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 05:27:55 +00:00

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
This commit is contained in:
JINMEI Tatuya 2009-10-31 20:20:32 +00:00
parent 439ce05432
commit 23f1419311

View File

@ -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,