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
ISC Open Source Projects
BIND
Commits
d55fedfc
Commit
d55fedfc
authored
Feb 01, 1999
by
Bob Halley
Browse files
initialize values to avoid INSIST(l->nwactive == 0) when starting
parent
8a17d1e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
bin/named/tcpclient.c
View file @
d55fedfc
...
...
@@ -391,7 +391,13 @@ tcp_listener_allocate(isc_mem_t *mctx, u_int nwmax)
l
->
ctxs
=
isc_mem_get
(
mctx
,
sizeof
(
tcp_cctx_t
*
)
*
nwmax
);
RUNTIME_CHECK
(
l
->
ctxs
!=
NULL
);
/* XXX should be non-fatal? */
l
->
sock
=
NULL
;
l
->
nwstart
=
0
;
l
->
nwkeep
=
0
;
l
->
nwmax
=
nwmax
;
l
->
mctx
=
mctx
;
l
->
dispatch
=
NULL
;
l
->
nwactive
=
0
;
return
(
l
);
}
...
...
bin/named/udpclient.c
View file @
d55fedfc
...
...
@@ -206,7 +206,13 @@ udp_listener_allocate(isc_mem_t *mctx, u_int nwmax)
l
->
ctxs
=
isc_mem_get
(
mctx
,
sizeof
(
udp_cctx_t
*
)
*
nwmax
);
RUNTIME_CHECK
(
l
->
ctxs
!=
NULL
);
/* XXX should be non-fatal? */
l
->
sock
=
NULL
;
l
->
nwstart
=
0
;
l
->
nwkeep
=
0
;
l
->
nwmax
=
nwmax
;
l
->
mctx
=
mctx
;
l
->
dispatch
=
NULL
;
l
->
nwactive
=
0
;
return
(
l
);
}
...
...
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