Skip to content

Commit

Permalink
Merge pull request #189 from FGasper/remove_unused
Browse files Browse the repository at this point in the history
Remove unused variable.
  • Loading branch information
wtoorop authored Nov 16, 2022
2 parents 689403f + 78c70a9 commit 837c90a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions wire2host.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 837c90a

Please sign in to comment.