2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

-t now works

This commit is contained in:
Brian Wellington 2001-05-09 18:59:55 +00:00
parent fdd2f4e5d0
commit 08116c0bbd

View File

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: wire_test.c,v 1.59 2001/05/09 18:56:29 bwelling Exp $ */ /* $Id: wire_test.c,v 1.60 2001/05/09 18:59:55 bwelling Exp $ */
#include <config.h> #include <config.h>
@ -161,11 +161,13 @@ main(int argc, char *argv[]) {
if (need_close) if (need_close)
fclose(f); fclose(f);
isc_buffer_init(&source, b, sizeof(b)); if (tcp) {
isc_buffer_add(&source, bp - b); isc_buffer_init(&source, b + 2, sizeof(b) - 2);
isc_buffer_add(&source, bp - b - 2);
if (tcp) } else {
isc_buffer_getuint16(&source); isc_buffer_init(&source, b, sizeof(b));
isc_buffer_add(&source, bp - b);
}
message = NULL; message = NULL;
result = dns_message_create(mctx, DNS_MESSAGE_INTENTPARSE, &message); result = dns_message_create(mctx, DNS_MESSAGE_INTENTPARSE, &message);