fixup attach_edns check for streamtcp (in case of future enhancements and smaller buffer sizes).
@@ -143,6 +143,8 @@ write_q(int fd, int udp, SSL* ssl, sldns_buffer* buf, uint16_t id,
edns.edns_present = 1;
edns.bits = EDNS_DO;
edns.udp_size = 4096;
+ if(sldns_buffer_capacity(buf) >=
+ sldns_buffer_limit(buf)+calc_edns_field_size(&edns))
attach_edns_record(buf, &edns);
}
