pullup:
1186. [bug] isc_hex_tobuffer(,,length = 0) failed to unget the
EOL token when reading to end of line.
This commit is contained in:
3
CHANGES
3
CHANGES
@@ -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.
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user