Commit 60a7fe5d authored by Brian Wellington's avatar Brian Wellington
Browse files

remove uninitialized variable.

parent 83081c08
......@@ -78,16 +78,15 @@ hex_decode_char(hex_decode_ctx_t *ctx, int c) {
return (ISC_R_BADHEX);
ctx->val[ctx->digits++] = s - hex;
if (ctx->digits == 2) {
int n;
unsigned char num;
num = (ctx->val[0] << 4) + (ctx->val[1]);
RETERR(mem_tobuffer(ctx->target, &num, 1));
if (ctx->length >= 0) {
if (n > ctx->length)
if (ctx->length == 0)
return (ISC_R_BADHEX);
else
ctx->length -= n;
ctx->length -= 1;
}
ctx->digits = 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment