Author: metze
Date: 2005-09-10 09:16:29 +0000 (Sat, 10 Sep 2005)
New Revision: 10143

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10143

Log:
don't exit when the not all bytes are consumed,
(this happens with relative pointers)

metze
Modified:
   branches/SAMBA_4_0/source/utils/ndrdump.c


Changeset:
Modified: branches/SAMBA_4_0/source/utils/ndrdump.c
===================================================================
--- branches/SAMBA_4_0/source/utils/ndrdump.c   2005-09-10 08:47:15 UTC (rev 
10142)
+++ branches/SAMBA_4_0/source/utils/ndrdump.c   2005-09-10 09:16:29 UTC (rev 
10143)
@@ -262,8 +262,7 @@
        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 @@
                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);

Reply via email to