mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 08:54:42 -04:00
base and length should have been taken from tregion not target.
This commit is contained in:
parent
7d62ddffbb
commit
f0ff273b53
1 changed files with 3 additions and 3 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rdata.c,v 1.44 1999/05/17 15:30:03 marka Exp $ */
|
||||
/* $Id: rdata.c,v 1.45 1999/05/17 15:40:39 marka Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
|
@ -725,8 +725,8 @@ txt_fromtext(isc_textregion_t *source, isc_buffer_t *target) {
|
|||
isc_buffer_available(target, &tregion);
|
||||
s = source->base;
|
||||
n = source->length;
|
||||
t = target->base;
|
||||
nrem = target->length;
|
||||
t = tregion.base;
|
||||
nrem = tregion.length;
|
||||
escape = ISC_FALSE;
|
||||
if (nrem < 1)
|
||||
return (DNS_R_NOSPACE);
|
||||
|
|
|
|||
Loading…
Reference in a new issue