summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorInternet Software Consortium, Inc <@isc.org>2013-06-12 10:32:33 -0600
committerInternet Software Consortium, Inc <@isc.org>2013-06-12 10:32:33 -0600
commit87c6fc212d37ddbeb388f8308377ae38de3061d9 (patch)
treee9bdd0f37b0e007485573c66bb5eeb1559c80f6f /lib
parent3f5a3d99feca79b1338646e936a2ee7a5862a43a (diff)
downloadbind9-87c6fc212d37ddbeb388f8308377ae38de3061d9.tar.gz
9.9.3
Diffstat (limited to 'lib')
-rw-r--r--lib/dns/api2
-rw-r--r--lib/dns/win32/libdns.def1
-rw-r--r--lib/dns/zone.c4
3 files changed, 6 insertions, 1 deletions
diff --git a/lib/dns/api b/lib/dns/api
index 16103e59..a8881101 100644
--- a/lib/dns/api
+++ b/lib/dns/api
@@ -5,5 +5,5 @@
# 9.9: 90-109
# 9.9-sub: 130-139
LIBINTERFACE = 99
-LIBREVISION = 0
+LIBREVISION = 1
LIBAGE = 0
diff --git a/lib/dns/win32/libdns.def b/lib/dns/win32/libdns.def
index e3351f33..3446d1d4 100644
--- a/lib/dns/win32/libdns.def
+++ b/lib/dns/win32/libdns.def
@@ -318,6 +318,7 @@ dns_master_stylecreate
dns_master_stylecreate2
dns_master_styledestroy
dns_message_addname
+dns_message_buildopt
dns_message_checksig
dns_message_create
dns_message_currentname
diff --git a/lib/dns/zone.c b/lib/dns/zone.c
index a60ee79b..10ba807c 100644
--- a/lib/dns/zone.c
+++ b/lib/dns/zone.c
@@ -2490,6 +2490,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);