Hi,

sometimes I get this error when I'm doing some querys with

req=dns.message.make_query(domain, dns.rdatatype.ANY)
dns.query.udp(req, ns, timeout=4)

I'm using version 1.7.1

File "/usr/local/lib/python2.6/dist-packages/dns/entropy.py", line 65, in random_8
    value = ord(self.digest[self.next_byte])
IndexError: string index out of range

And the same error in line 54, in the stir-function.


I patched it with
poolsize=len(bytes)
...
if self.pool_index >= poolsize:
...

It helps not raising an exception, but I'm not sure if the functions are still doing what they should.

_______________________________________________
dnspython-bugs mailing list
[email protected]
http://howl.play-bow.org/mailman/listinfo.cgi/dnspython-bugs

Reply via email to