git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2cc8ef
)
auth_server: fix the logic of server_get_challenge()
author
Stefan Metzmacher
<metze@samba.org>
Fri, 1 Aug 2008 13:53:01 +0000
(15:53 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Fri, 1 Aug 2008 13:54:57 +0000
(15:54 +0200)
metze
source/auth/ntlm/auth_server.c
patch
|
blob
|
history
diff --git
a/source/auth/ntlm/auth_server.c
b/source/auth/ntlm/auth_server.c
index 7efbdb30504d59d60f06296b869c9b25f0b5b238..42606c14baeac408475d4fe337bf4bde6e9fdd24 100644
(file)
--- a/
source/auth/ntlm/auth_server.c
+++ b/
source/auth/ntlm/auth_server.c
@@
-79,10
+79,10
@@
static NTSTATUS server_get_challenge(struct auth_method_context *ctx, TALLOC_CTX
status = smb_composite_connect(&io, mem_ctx, lp_resolve_context(ctx->auth_ctx->lp_ctx),
ctx->auth_ctx->event_ctx);
- if (!NT_STATUS_IS_OK(status)) {
- *_blob = io.out.tree->session->transport->negotiate.secblob;
-
ctx->private_data = talloc_steal(ctx, io.out.tree->session)
;
- }
+ NT_STATUS_NOT_OK_RETURN(status);
+
+
*_blob = io.out.tree->session->transport->negotiate.secblob
;
+ ctx->private_data = talloc_steal(ctx, io.out.tree->session);
return NT_STATUS_OK;
}