]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Remove bogus condition
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 20 Sep 2021 19:30:25 +0000 (20:30 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 20 Sep 2021 19:30:25 +0000 (20:30 +0100)
contrib/librdns/packet.c

index cdb524705254421d0be54eef3ccba30abed5b50b..99536668c84fe9f1c089d9d373bdf275d717f233 100644 (file)
@@ -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;
        }