Commit b3c82438 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(isc_bindtcp): Pass the proper size to bind() for IPv4 and IPv6.

parent 9a717950
......@@ -314,7 +314,9 @@ isc_bindtcp(IscSession *scb,
! (ia = isc_mktcpaddress(address, service, af))
|| (bind(scb->fd,
(struct sockaddr *) &ia->ip.saddr,
sizeof(ia->ip.saddr)) < 0)))
CHOOSE_IP4OR6(ia->ip.saddr,
sizeof(struct sockaddr_in),
sizeof(struct sockaddr_in6))) < 0)))
return -1;
scb->info.tcp.laddr = ia;
......
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