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
5e09ded4
Commit
5e09ded4
authored
May 24, 2000
by
David Lawrence
Browse files
cast assignment of confdata->ndots to lwres_uint8_t (its type). it was already
being range checked.
parent
695c2f9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/lwres/lwconfig.c
View file @
5e09ded4
...
...
@@ -436,7 +436,7 @@ lwres_conf_parseoption(lwres_context_t *ctx, FILE *fp) {
return
(
LWRES_R_FAILURE
);
if
(
ndots
<
0
||
ndots
>
0xff
)
/* Out of range. */
return
(
LWRES_R_FAILURE
);
confdata
->
ndots
=
ndots
;
confdata
->
ndots
=
(
lwres_uint8_t
)
ndots
;
}
if
(
delim
==
EOF
||
delim
==
'\n'
)
...
...
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