From: Vsevolod Stakhov Date: Mon, 20 Sep 2021 19:30:25 +0000 (+0100) Subject: [Minor] Remove bogus condition X-Git-Tag: 3.1~137 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4768b36e4d0d18f43962e4c54108ac1257f144fc;p=rspamd.git [Minor] Remove bogus condition --- 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; }