[svn] commit: r1222 - /trunk/src/lib/auth/data_source_sqlite3.cc

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Mar 9 01:01:07 UTC 2010


Author: each
Date: Tue Mar  9 01:01:07 2010
New Revision: 1222

Log:
findClosest() didn't handle the root zone correctly

Modified:
    trunk/src/lib/auth/data_source_sqlite3.cc

Modified: trunk/src/lib/auth/data_source_sqlite3.cc
==============================================================================
--- trunk/src/lib/auth/data_source_sqlite3.cc (original)
+++ trunk/src/lib/auth/data_source_sqlite3.cc Tue Mar  9 01:01:07 2010
@@ -298,7 +298,7 @@
         while (*current != '.' && *current != 0) {
             ++current;
         }
-        if (*current == '.') {
+        if (*current == '.' && *(current + 1) != '\0') {
             ++current;
         }
     }




More information about the bind10-changes mailing list