summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-04-22 16:44:11 +0200
committerVolker Lendecke <vl@samba.org>2009-04-28 05:31:48 +0200
commit6af92c022865412a7447b1f2ef9828a57199fce0 (patch)
tree065bc0bae799cdca973336b03d314908c1e8e351 /source3/rpc_client
parenta716606c2745f4b1d3adf220707a8d5dbd86acbb (diff)
downloadsamba-6af92c022865412a7447b1f2ef9828a57199fce0.tar.gz
samba-6af92c022865412a7447b1f2ef9828a57199fce0.tar.bz2
samba-6af92c022865412a7447b1f2ef9828a57199fce0.zip
Do not panic unnecessarily
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_netlogon.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/rpc_client/cli_netlogon.c b/source3/rpc_client/cli_netlogon.c
index cfaf9f3649..fd10721645 100644
--- a/source3/rpc_client/cli_netlogon.c
+++ b/source3/rpc_client/cli_netlogon.c
@@ -45,8 +45,10 @@ NTSTATUS rpccli_netlogon_setup_creds(struct rpc_pipe_client *cli,
bool retried = false;
fstring mach_acct;
- SMB_ASSERT(ndr_syntax_id_equal(&cli->abstract_syntax,
- &ndr_table_netlogon.syntax_id));
+ if (!ndr_syntax_id_equal(&cli->abstract_syntax,
+ &ndr_table_netlogon.syntax_id)) {
+ return NT_STATUS_INVALID_PARAMETER;
+ }
TALLOC_FREE(cli->dc);