Browse Source

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


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1293 e5f2f494-b856-4b98-b285-d166d9295462

Evan Hunt 15 years ago
parent
commit
c55d7e438d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/python/isc/auth/master.py

+ 1 - 1
src/lib/python/isc/auth/master.py

@@ -227,7 +227,7 @@ class MasterFile:
             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):