[Freeipa-devel] [PATCH] fix DNS discovery in config

Rob Crittenden rcritten at redhat.com
Wed Jun 4 17:48:21 UTC 2008


Under some conditions rl may not have been initialized so the config may 
error out with:

UnboundLocalError: "local variable 'rl' referenced before assignment"

This is caught and ignored but the result is that the records in DNS may 
not be used at all. Initializing rl to zero fixes this.

I also convert the server list into a set to make each entry unique (and 
back to a list because that is what we are supposed to return)

rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-43-config.patch
Type: text/x-patch
Size: 1386 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20080604/659d69c1/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3245 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20080604/659d69c1/attachment-0001.bin>


More information about the Freeipa-devel mailing list