Changeset 661
- Timestamp:
- 04/05/06 17:34:32 (7 years ago)
- Files:
-
- 1 modified
-
trunk/pdns/pdns/dnswriter.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/dnswriter.cc
r650 r661 140 140 goto out; // skip trailing 0 in case of compression 141 141 } 142 else if(compress || d_labelmap.count(chopped)) { // if 'compress' is true, li will be equal to d_labelmap.end() 143 d_labelmap[chopped]=pos; // if untrue, we need to count 142 143 if(compress && pos < 16384) { 144 d_labelmap[chopped]=pos; // if untrue, we need to count - also, don't store offsets > 16384, won't work 144 145 } 145 146 d_record.push_back((char)(i->second - i->first));