From 859f270d03e5700116cd1b5444a7697b888ff0b1 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 10 Sep 2005 09:16:29 +0000 Subject: r10143: don't exit when the not all bytes are consumed, (this happens with relative pointers) metze (This used to be commit 3ba227aafd75b88c26c6a3fde8d55aeb360e344f) --- source4/utils/ndrdump.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source4/utils') diff --git a/source4/utils/ndrdump.c b/source4/utils/ndrdump.c index 119f8078f8..37c182d39d 100644 --- a/source4/utils/ndrdump.c +++ b/source4/utils/ndrdump.c @@ -262,8 +262,7 @@ static char *stdin_load(TALLOC_CTX *mem_ctx, size_t *size) ndr_print->depth = 1; f->ndr_print(ndr_print, function, flags, st); - if (!NT_STATUS_IS_OK(status) || - ndr_pull->offset != ndr_pull->data_size) { + if (!NT_STATUS_IS_OK(status)) { printf("dump FAILED\n"); exit(1); } @@ -301,9 +300,8 @@ static char *stdin_load(TALLOC_CTX *mem_ctx, size_t *size) printf("pull returned %s\n", nt_errstr(status)); if (ndr_v_pull->offset != ndr_v_pull->data_size) { - printf("ERROR! %d unread bytes in validation\n", ndr_v_pull->data_size - ndr_v_pull->offset); + printf("WARNING! %d unread bytes in validation\n", ndr_v_pull->data_size - ndr_v_pull->offset); dump_data(0, ndr_v_pull->data+ndr_v_pull->offset, ndr_v_pull->data_size - ndr_v_pull->offset); - exit(1); } ndr_v_print = talloc_zero(mem_ctx, struct ndr_print); -- cgit