]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[v9_6] silence ccc-analyzer
authorEvan Hunt <each@isc.org>
Fri, 3 May 2013 21:26:09 +0000 (14:26 -0700)
committerEvan Hunt <each@isc.org>
Fri, 3 May 2013 21:29:09 +0000 (14:29 -0700)
3567. [bug] Silence clang static analyzer warnings. [RT #33365]

CHANGES
lib/dns/zone.c

diff --git a/CHANGES b/CHANGES
index 8215d079b9d12427c115c370824c916910fe08f5..199f28d501bea474adc8fc4810dc99b21aae7888 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+3567.  [bug]           Silence clang static analyzer warnings. [RT #33365]
+
 3563.  [contrib]       zone2sqlite failed with some table names. [RT #33375]
 
 3561.  [bug]           dig: issue a warning if an EDNS query returns FORMERR
index 1a760d65e405b190de7940cabfcdbd48572f729a..1cabbb0f701cfd9114af02dd6ff9dab3d7375bbf 100644 (file)
@@ -2030,6 +2030,10 @@ isspf(const dns_rdata_t *rdata) {
                data += tl;
                rdl -= tl;
        }
+
+       if (i < 6U)
+               return (ISC_FALSE);
+
        buf[i] = 0;
        if (strncmp(buf, "v=spf1", 6) == 0 && (buf[6] == 0 || buf[6] == ' '))
                return (ISC_TRUE);