1186.   [bug]           isc_hex_tobuffer(,,length = 0) failed to unget the
                        EOL token when reading to end of line.
This commit is contained in:
Mark Andrews
2002-01-22 06:08:47 +00:00
parent 3bc24a3a90
commit 8ac220d5cc
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
1186. [bug] isc_hex_tobuffer(,,length = 0) failed to unget the
EOL token when reading to end of line.
1182. [bug] The server could throw an assertion failure when
constructing a negative response packet.

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: hex.c,v 1.8 2001/03/22 00:07:05 bwelling Exp $ */
/* $Id: hex.c,v 1.8.2.1 2002/01/22 06:08:47 marka Exp $ */
#include <config.h>
@@ -147,6 +147,8 @@ isc_hex_tobuffer(isc_lex_t *lexer, isc_buffer_t *target, int length) {
for (i = 0 ;i < tr->length; i++)
RETERR(hex_decode_char(&ctx, tr->base[i]));
}
if (ctx.length < 0)
isc_lex_ungettoken(lexer, &token);
RETERR(hex_decode_finish(&ctx));
return (ISC_R_SUCCESS);
}