mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-03 05:50:39 -05:00
While isc_buffer_copyregion() calls isc_buffer_reserve() to ensure the target buffer will have enough available space to append the contents of the source region to it, the variables used for subsequently checking available space are not updated accordingly after that call. This prevents isc_buffer_copyregion() from working as expected for auto-reallocated buffers: ISC_R_NOSPACE will be returned if enough space is not already available in the target buffer before it is reallocated. Fix by calling isc_buffer_used() and isc_buffer_availablelength() directly instead of assigning their return values to local variables. |
||
|---|---|---|
| .. | ||
| bind9 | ||
| dns | ||
| irs | ||
| isc | ||
| isccc | ||
| isccfg | ||
| ns | ||
| samples | ||
| win32/bindevt | ||
| .gitignore | ||
| Atffile | ||
| Kyuafile | ||
| Makefile.in | ||