Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
b3c82438
Commit
b3c82438
authored
Jan 06, 2003
by
Per Cederqvist
Browse files
(isc_bindtcp): Pass the proper size to bind() for IPv4 and IPv6.
parent
9a717950
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libraries/libisc-new/src/isc_tcp.c
View file @
b3c82438
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment