Changeset 509
- Timestamp:
- 10/04/05 19:55:01 (8 years ago)
- Location:
- trunk/pdns
- Files:
-
- 4 added
- 2 modified
-
pdns/dnspacket.cc (modified) (2 diffs)
-
regression-tests/double-srv (added)
-
regression-tests/double-srv/command (added)
-
regression-tests/double-srv/description (added)
-
regression-tests/double-srv/expected_result (added)
-
regression-tests/test.com (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/dnspacket.cc
r493 r509 241 241 if(d_compress) 242 242 for(vector<DNSResourceRecord>::const_iterator i=rrs.begin();i!=rrs.end();++i) 243 if(rr.qname==i->qname && rr.qtype==i->qtype && rr.content==i->content) 244 if(rr.qtype.getCode()!=QType::MX || rr.priority==i->priority)243 if(rr.qname==i->qname && rr.qtype==i->qtype && rr.content==i->content) { 244 if(rr.qtype.getCode()!=QType::MX && rr.qtype.getCode()!=QType::SRV) 245 245 return; 246 if(rr.priority==i->priority) 247 return; 248 } 246 249 247 250 rrs.push_back(rr); … … 1109 1112 commitD(); 1110 1113 1111 1112 1114 len=stringbuffer.length(); 1113 1115 } -
trunk/pdns/regression-tests/test.com
r502 r509 21 21 counter IN A 1.1.1.5 22 22 _ldap._tcp.dc IN SRV 0 100 389 server1 23 _double._tcp.dc IN SRV 0 100 389 server1 24 _double._tcp.dc IN SRV 1 100 389 server1