mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
-t now works
This commit is contained in:
parent
fdd2f4e5d0
commit
08116c0bbd
@ -15,7 +15,7 @@
|
||||
* 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>
|
||||
|
||||
@ -161,11 +161,13 @@ main(int argc, char *argv[]) {
|
||||
if (need_close)
|
||||
fclose(f);
|
||||
|
||||
isc_buffer_init(&source, b, sizeof(b));
|
||||
isc_buffer_add(&source, bp - b);
|
||||
|
||||
if (tcp)
|
||||
isc_buffer_getuint16(&source);
|
||||
if (tcp) {
|
||||
isc_buffer_init(&source, b + 2, sizeof(b) - 2);
|
||||
isc_buffer_add(&source, bp - b - 2);
|
||||
} else {
|
||||
isc_buffer_init(&source, b, sizeof(b));
|
||||
isc_buffer_add(&source, bp - b);
|
||||
}
|
||||
|
||||
message = NULL;
|
||||
result = dns_message_create(mctx, DNS_MESSAGE_INTENTPARSE, &message);
|
||||
|
Loading…
x
Reference in New Issue
Block a user