summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-04-06 14:26:20 +0200
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-04-06 14:54:10 +0200
commitb7b464eeee96a57fb94c1f0899bfdb6639a70eb6 (patch)
tree2f6b3d57434d4a5ae665ac672fa86613b0be30c5 /source4
parent0086db6c0cdf0c7afccc143259c8c55382e466aa (diff)
downloadsamba-b7b464eeee96a57fb94c1f0899bfdb6639a70eb6.tar.gz
samba-b7b464eeee96a57fb94c1f0899bfdb6639a70eb6.tar.bz2
samba-b7b464eeee96a57fb94c1f0899bfdb6639a70eb6.zip
s4:auth/ntlm/auth_developer.c - "fixed_challenge_get_challenge" - fix the assignment of the challenge
This is a string buffer and not a DATA_BLOB.
Diffstat (limited to 'source4')
-rw-r--r--source4/auth/ntlm/auth_developer.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source4/auth/ntlm/auth_developer.c b/source4/auth/ntlm/auth_developer.c
index c9048310c3..96491d62c9 100644
--- a/source4/auth/ntlm/auth_developer.c
+++ b/source4/auth/ntlm/auth_developer.c
@@ -150,15 +150,12 @@ static const struct auth_operations name_to_ntstatus_auth_ops = {
*
* @return NT_STATUS_UNSUCCESSFUL
**/
-static NTSTATUS fixed_challenge_get_challenge(struct auth_method_context *ctx, TALLOC_CTX *mem_ctx, DATA_BLOB *_blob)
+static NTSTATUS fixed_challenge_get_challenge(struct auth_method_context *ctx, TALLOC_CTX *mem_ctx, uint8_t chal[8])
{
- DATA_BLOB blob;
const char *challenge = "I am a teapot";
- blob = data_blob_talloc(mem_ctx, challenge, 8);
- NT_STATUS_HAVE_NO_MEMORY(blob.data);
+ memcpy(chal, challenge, 8);
- *_blob = blob;
return NT_STATUS_OK;
}