Skip to content

Commit

Permalink
[Minor] Remove bogus condition
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Sep 20, 2021
1 parent 1f60a90 commit 4768b36
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions contrib/librdns/packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,7 @@ rdns_maybe_punycode_label (const uint8_t *begin,
p ++;
}

if (*p) {
*label_len = p - begin;
}
else {
if (label_len) {
*label_len = p - begin;
}

Expand Down

0 comments on commit 4768b36

Please sign in to comment.