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
8dfc9852
Commit
8dfc9852
authored
May 04, 2000
by
Andreas Gustafsson
Browse files
isc_mem_get() return value check used the wrong variable
parent
ae0713ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/isc/lex.c
View file @
8dfc9852
...
...
@@ -72,7 +72,7 @@ grow_data(isc_lex_t *lex, size_t *remainingp, char **currp, char **prevp) {
char
*
new
;
new
=
isc_mem_get
(
lex
->
mctx
,
lex
->
max_token
*
2
+
1
);
if
(
lex
==
NULL
)
if
(
new
==
NULL
)
return
(
ISC_R_NOMEMORY
);
memcpy
(
new
,
lex
->
data
,
lex
->
max_token
+
1
);
*
currp
=
new
+
(
*
currp
-
lex
->
data
);
...
...
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