git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a716606
)
Do not panic unnecessarily
author
Volker Lendecke
<vl@samba.org>
Wed, 22 Apr 2009 14:44:11 +0000
(16:44 +0200)
committer
Volker Lendecke
<vl@samba.org>
Tue, 28 Apr 2009 03:31:48 +0000
(
05:31
+0200)
source3/rpc_client/cli_netlogon.c
patch
|
blob
|
history
diff --git
a/source3/rpc_client/cli_netlogon.c
b/source3/rpc_client/cli_netlogon.c
index cfaf9f3649542f19abfe02b2b47b23b7ac843ebe..fd10721645ce0f8de2da6248597b5e03edb81b19 100644
(file)
--- 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);