From 4768b36e4d0d18f43962e4c54108ac1257f144fc Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 20 Sep 2021 20:30:25 +0100 Subject: [PATCH] [Minor] Remove bogus condition --- contrib/librdns/packet.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/contrib/librdns/packet.c b/contrib/librdns/packet.c index cdb5247052..99536668c8 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; } -- 2.47.3