mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
4384. [bug] isc_buffer_reallocate returns wrong result when passed
a smaller length than what is already allocated. [RT #42612]
This commit is contained in:
4
CHANGES
4
CHANGES
@@ -1,3 +1,7 @@
|
|||||||
|
4384. [bug] isc_buffer_reallocate returns wrong result when passed
|
||||||
|
a smaller length than what is already allocated.
|
||||||
|
[RT #42612]
|
||||||
|
|
||||||
4383. [bug] Correct spelling error in stats channel description of
|
4383. [bug] Correct spelling error in stats channel description of
|
||||||
"EDNS client subnet option received". [RT #42633]
|
"EDNS client subnet option received". [RT #42633]
|
||||||
|
|
||||||
|
@@ -523,7 +523,7 @@ isc_buffer_reallocate(isc_buffer_t **dynbuffer, unsigned int length) {
|
|||||||
REQUIRE((*dynbuffer)->mctx != NULL);
|
REQUIRE((*dynbuffer)->mctx != NULL);
|
||||||
|
|
||||||
if ((*dynbuffer)->length > length)
|
if ((*dynbuffer)->length > length)
|
||||||
return (ISC_R_NOSPACE);
|
return (ISC_R_SUCCESS);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* XXXMUKS: This is far more expensive than plain realloc() as
|
* XXXMUKS: This is far more expensive than plain realloc() as
|
||||||
|
Reference in New Issue
Block a user