mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
isc_mem_get() return value check used the wrong variable
This commit is contained in:
parent
ae0713cac2
commit
8dfc98528f
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue