diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-09-10 09:16:29 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:38:02 -0500 |
commit | 859f270d03e5700116cd1b5444a7697b888ff0b1 (patch) | |
tree | 509777e3ecb29c723183f6b041af4029572d4220 /source4/utils | |
parent | 0559bae27722a6eb48e3c94cddaa80649193d431 (diff) | |
download | samba-859f270d03e5700116cd1b5444a7697b888ff0b1.tar.gz samba-859f270d03e5700116cd1b5444a7697b888ff0b1.tar.bz2 samba-859f270d03e5700116cd1b5444a7697b888ff0b1.zip |
r10143: don't exit when the not all bytes are consumed,
(this happens with relative pointers)
metze
(This used to be commit 3ba227aafd75b88c26c6a3fde8d55aeb360e344f)
Diffstat (limited to 'source4/utils')
-rw-r--r-- | source4/utils/ndrdump.c | 6 |
1 files changed, 2 insertions, 4 deletions
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); |