rpms/ipa/F-7 freeipa-dnsquery.patch,NONE,1.1
Robert Crittenden (rcritten)
fedora-extras-commits at redhat.com
Fri May 16 14:32:46 UTC 2008
- Previous message (by thread): [pkgdb] libcapseo had acl change status
- Next message (by thread): rpms/yum/F-9 .cvsignore, 1.70, 1.71 sources, 1.73, 1.74 yum.spec, 1.212, 1.213 yum-big-head.patch, 1.6, NONE yum-misc-fixes.patch, 1.14, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: rcritten
Update of /cvs/extras/rpms/ipa/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4772
Added Files:
freeipa-dnsquery.patch
Log Message:
Added patch to fix problem with DNS querying where the query could be
returned as the answer.
freeipa-dnsquery.patch:
--- NEW FILE freeipa-dnsquery.patch ---
--- a/ipa-python/dnsclient.py
+++ b/ipa-python/dnsclient.py
@@ -365,22 +365,22 @@ def dnsParseResults(results):
if not rest:
return []
- rr = DNSResult()
+ qq = DNSResult()
(rest, label) = dnsParseLabel(rest, results)
if label is None:
return []
- if len(rest) < rr.qsize():
+ if len(rest) < qq.qsize():
return []
- rr.qunpack(rest)
+ qq.qunpack(rest)
- rest = rest[rr.qsize():]
+ rest = rest[qq.qsize():]
if DEBUG_DNSCLIENT:
print "Queried for '%s', class = %d, type = %d." % (label,
- rr.dns_class, rr.dns_type)
+ qq.dns_class, qq.dns_type)
for i in xrange(header.dns_ancount + header.dns_nscount + header.dns_arcount):
(rest, label) = dnsParseLabel(rest, results)
@@ -424,8 +424,6 @@ def dnsParseResults(results):
rest = rest[rr.dns_rlength:]
rrlist += [rr]
- if not rrlist:
- rrlist = [rr]
return rrlist
def query(query, qclass, qtype):
- Previous message (by thread): [pkgdb] libcapseo had acl change status
- Next message (by thread): rpms/yum/F-9 .cvsignore, 1.70, 1.71 sources, 1.73, 1.74 yum.spec, 1.212, 1.213 yum-big-head.patch, 1.6, NONE yum-misc-fixes.patch, 1.14, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list