2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-05 00:55:24 +00:00

Revert "4384. [bug] isc_buffer_reallocate returns wrong result when passed"

This reverts commit 01a0206c40.
This commit is contained in:
Mark Andrews
2016-06-16 21:15:56 +10:00
parent 01a0206c40
commit 4c3be616f9
2 changed files with 1 additions and 5 deletions

View File

@@ -523,7 +523,7 @@ isc_buffer_reallocate(isc_buffer_t **dynbuffer, unsigned int length) {
REQUIRE((*dynbuffer)->mctx != NULL);
if ((*dynbuffer)->length > length)
return (ISC_R_SUCCESS);
return (ISC_R_NOSPACE);
/*
* XXXMUKS: This is far more expensive than plain realloc() as