Changeset 760 for trunk/pdns/pdns/dnsparser.cc
- Timestamp:
- 04/22/06 15:57:30 (4 years ago)
- Files:
-
- 1 modified
-
trunk/pdns/pdns/dnsparser.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/dnsparser.cc
r731 r760 244 244 bool MOADNSParser::getEDNSOpts(EDNSOpts* eo) 245 245 { 246 if(d_header.arcount ) {246 if(d_header.arcount && !d_answers.empty()) { 247 247 eo->d_packetsize=d_answers.back().first.d_class; 248 248 struct Stuff { … … 250 250 uint16_t Z; 251 251 } __attribute__((packed)); 252 252 253 253 Stuff stuff; 254 254 uint32_t ttl=ntohl(d_answers.back().first.d_ttl);