[svn] commit: r1293 - /trunk/src/lib/python/isc/auth/master.py

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Mar 10 19:41:01 UTC 2010


Author: each
Date: Wed Mar 10 19:41:01 2010
New Revision: 1293

Log:
oops... need to treat TTL as a string, but still compare it against maxttl
as an int

Modified:
    trunk/src/lib/python/isc/auth/master.py

Modified: trunk/src/lib/python/isc/auth/master.py
==============================================================================
--- trunk/src/lib/python/isc/auth/master.py (original)
+++ trunk/src/lib/python/isc/auth/master.py Wed Mar 10 19:41:01 2010
@@ -227,7 +227,7 @@
             if more:
                 raise MasterFileError('Invalid $TTL statement')
             self.__ttl = parse_ttl(second)
-            if self.__ttl > self.__maxttl:
+            if int(self.__ttl) > self.__maxttl:
                 raise MasterFileError('TTL too high: ' + second)
             return True
         elif re.match('\$generate', first, re.I):




More information about the bind10-changes mailing list