summaryrefslogtreecommitdiff
path: root/source/librpc/rpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-11-05 07:09:41 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:44:16 +0100
commit4f5ad8cd447f8b44df1bd40f5ee3045d5ab2c3dc (patch)
tree9a3715a2ef416a30a07dbc782a96ea24d395a49f /source/librpc/rpc
parent2bd63ce9e53071dc81549e0f344a0e53737760b4 (diff)
downloadsamba-4f5ad8cd447f8b44df1bd40f5ee3045d5ab2c3dc.tar.gz
r25829: - use DEBUG() instead of printf
- return an error if strings doesn't match on validate metze
Diffstat (limited to 'source/librpc/rpc')
-rw-r--r--source/librpc/rpc/dcerpc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/librpc/rpc/dcerpc.c b/source/librpc/rpc/dcerpc.c
index 5f7b2991a9d..9d58fafcb86 100644
--- a/source/librpc/rpc/dcerpc.c
+++ b/source/librpc/rpc/dcerpc.c
@@ -1291,7 +1291,7 @@ static NTSTATUS dcerpc_ndr_validate_out(struct dcerpc_connection *c,
NDR_OUT, st);
if (strcmp(s1, s2) != 0) {
#if 1
- printf("VALIDATE ERROR:\nWIRE:\n%s\n GEN:\n%s\n", s1, s2);
+ DEBUG(3,("VALIDATE ERROR:\nWIRE:\n%s\n GEN:\n%s\n", s1, s2));
#else
/* this is sometimes useful */
printf("VALIDATE ERROR\n");
@@ -1299,6 +1299,8 @@ static NTSTATUS dcerpc_ndr_validate_out(struct dcerpc_connection *c,
file_save("gen.dat", s2, strlen(s2));
system("diff -u wire.dat gen.dat");
#endif
+ return ndr_push_error(push, NDR_ERR_VALIDATE,
+ "failed output validation strings doesn't match");
}
return NT_STATUS_OK;