Skip to content
GitLab
Menu
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
5c0a4066
Commit
5c0a4066
authored
Jul 11, 2000
by
Mark Andrews
Browse files
325. [bug] isc_lex_gettoken was processing octal strings when
ISC_LEXOPT_CNUMBER was not set.
parent
6c3371d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
5c0a4066
325. [bug] isc_lex_gettoken was processing octal strings when
ISC_LEXOPT_CNUMBER was not set.
324. [func] In the resolver, turn EDNS0 off if there is no
response after a number of retransmissions.
...
...
lib/isc/lex.c
View file @
5c0a4066
...
...
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: lex.c,v 1.3
2
2000/07/1
0
0
5:11:17
marka Exp $ */
/* $Id: lex.c,v 1.3
3
2000/07/1
1
0
2:44:54
marka Exp $ */
#include <config.h>
...
...
@@ -511,8 +511,13 @@ isc_lex_gettoken(isc_lex_t *lex, unsigned int options, isc_token_t *tokenp) {
if
(
c
==
' '
||
c
==
'\t'
||
c
==
'\r'
||
c
==
'\n'
||
c
==
EOF
||
lex
->
specials
[
c
])
{
int
base
;
if
((
options
&
ISC_LEXOPT_CNUMBER
)
!=
0
)
base
=
0
;
else
base
=
10
;
pushback
(
source
,
c
);
ulong
=
strtoul
(
lex
->
data
,
&
e
,
0
);
ulong
=
strtoul
(
lex
->
data
,
&
e
,
base
);
if
(
ulong
==
ULONG_MAX
&&
errno
==
ERANGE
)
{
return
(
ISC_R_RANGE
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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