Changeset 690 for trunk/pdns/pdns/dnswriter.cc
- Timestamp:
- 04/13/06 16:20:19 (7 years ago)
- Files:
-
- 1 modified
-
trunk/pdns/pdns/dnswriter.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/dnswriter.cc
r687 r690 17 17 d_content.resize(len + sizeof(dnsheader)); 18 18 uint8_t* dptr=(&*d_content.begin()) + len; 19 19 20 20 memcpy(dptr, ptr, sizeof(dnsheader)); 21 21 d_stuff=0; 22 22 xfrLabel(qname, false); 23 23 … … 141 141 goto out; // skip trailing 0 in case of compression 142 142 } 143 144 if(li==d_labelmap.end() && pos< 16384) 145 d_labelmap[chopped]=pos; // if untrue, we need to count - also, don't store offsets > 16384, won't work 143 146 144 if(li==d_labelmap.end() && pos < 16384) {145 d_labelmap[chopped]=pos; // if untrue, we need to count - also, don't store offsets > 16384, won't work146 }147 147 d_record.push_back((char)(i->second - i->first)); 148 148 unsigned int len=d_record.size();