From fb1ee7bee0e7cb77df61e3940cfe8dca9bb1390d Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Sun, 19 Nov 2000 20:58:58 +0000 Subject: [PATCH] isc_hex_fromtext didn't handle lowercase a-f --- lib/isc/hex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/isc/hex.c b/lib/isc/hex.c index 8a8a37aec0..59d8369a4e 100644 --- a/lib/isc/hex.c +++ b/lib/isc/hex.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: hex.c,v 1.4 2000/11/18 03:01:12 bwelling Exp $ */ +/* $Id: hex.c,v 1.5 2000/11/19 20:58:58 bwelling Exp $ */ #include @@ -93,7 +93,7 @@ static inline isc_result_t hex_decode_char(hex_decode_ctx_t *ctx, int c) { char *s; - if ((s = strchr(hex, c)) == NULL) + if ((s = strchr(hex, toupper(c))) == NULL) return (ISC_R_BADHEX); ctx->val[ctx->digits++] = s - hex; if (ctx->digits == 2) {