From 78c70a988a43b0aa306b5dd63e40cbb251225a86 Mon Sep 17 00:00:00 2001 From: Felipe Gasper Date: Mon, 17 Oct 2022 14:09:50 -0400 Subject: [PATCH] Remove unused variable. --- wire2host.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/wire2host.c b/wire2host.c index 63b67a0d..91d3f136 100644 --- a/wire2host.c +++ b/wire2host.c @@ -59,7 +59,6 @@ ldns_wire2dname(ldns_rdf **dname, const uint8_t *wire, size_t max, size_t *pos) uint16_t pointer_target; uint8_t pointer_target_buf[2]; size_t dname_pos = 0; - size_t uncompressed_length = 0; size_t compression_pos = 0; uint8_t tmp_dname[LDNS_MAX_DOMAINLEN]; unsigned int pointer_count = 0; @@ -120,7 +119,6 @@ ldns_wire2dname(ldns_rdf **dname, const uint8_t *wire, size_t max, size_t *pos) return LDNS_STATUS_DOMAINNAME_OVERFLOW; } memcpy(&tmp_dname[dname_pos], &wire[*pos], label_size); - uncompressed_length += label_size + 1; dname_pos += label_size; *pos = *pos + label_size;