Changeset 1114
- Timestamp:
- 12/12/07 07:52:49 (2 years ago)
- Files:
-
- 1 modified
-
trunk/pdns/modules/pipebackend/pipebackend.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/modules/pipebackend/pipebackend.cc
r1060 r1114 200 200 throw AhuException("Format error communicating with coprocess"); 201 201 } 202 else if(parts[0]=="FAIL") { 203 throw DBException("coprocess returned a FAIL"); 204 } 202 205 else if(parts[0]=="END") { 203 206 return false; … … 217 220 r.ttl=atoi(parts[4].c_str()); 218 221 r.domain_id=atoi(parts[5].c_str()); 219 220 if(parts[3]!="MX") 221 r.content=parts[6]; 222 223 if(parts[3]!="MX") { 224 r.content.clear(); 225 for(int n=6; n < parts.size(); ++n) { 226 if(n!=6) 227 r.content.append(1,' '); 228 r.content.append(parts[n]); 229 } 230 } 222 231 else { 223 232 if(parts.size()<8) { … … 228 237 r.priority=atoi(parts[6].c_str()); 229 238 r.content=parts[7]; 239 230 240 } 231 241 break;