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
8d45c628
Commit
8d45c628
authored
Jan 06, 2003
by
Per Cederqvist
Browse files
(isc_bindudp): Pass the proper size to bind() for IPv4 and IPv6.
parent
b3c82438
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libraries/libisc-new/src/isc_udp.c
View file @
8d45c628
...
...
@@ -344,7 +344,9 @@ isc_bindudp(IscSession *scb,
!
(
ia
=
isc_mkudpaddress
(
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
->
state
=
ISC_STATE_RUNNING
;
...
...
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