diff options
-rw-r--r-- | contrib/librdns/packet.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/contrib/librdns/packet.c b/contrib/librdns/packet.c index cdb524705..99536668c 100644 --- a/contrib/librdns/packet.c +++ b/contrib/librdns/packet.c @@ -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; } |