Fix print of ';' and readback of '\;' in names, also for '\\'.
Fix parse of '\(' and '\)' in names. Also for file read. Also '\.'
* Fix signature creation when TTLs are different for RRs in RRset.
+ * bug273: fix so EDNS rdata is included in pkt to wire conversion.
1.6.1 2009-09-14
* --enable-gost : use the GOST algorithm (experimental).
edata[1] = ldns_pkt_edns_version(packet);
ldns_write_uint16(&edata[2], ldns_pkt_edns_z(packet));
ldns_rr_set_ttl(edns_rr, ldns_read_uint32(edata));
+ /* don't forget to add the edns rdata (if any) */
+ if (packet->_edns_data)
+ ldns_rr_push_rdf (edns_rr, packet->_edns_data);
(void)ldns_rr2buffer_wire(buffer, edns_rr, LDNS_SECTION_ADDITIONAL);
+ /* take the edns rdata back out of the rr before we free rr */
+ if (packet->_edns_data)
+ ldns_rr_pop_rdf (edns_rr);
ldns_rr_free(edns_rr);
}