diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-09-11 23:05:08 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:58:39 -0500 |
commit | a06b88863d165d20123ee19f9313249b870ed2be (patch) | |
tree | a2403b1f42039a23bf82d2d7b876b148c3b118b4 /source4 | |
parent | 909c9b681a0718b8701e05addbad08c0aec87113 (diff) | |
download | samba-a06b88863d165d20123ee19f9313249b870ed2be.tar.gz samba-a06b88863d165d20123ee19f9313249b870ed2be.tar.bz2 samba-a06b88863d165d20123ee19f9313249b870ed2be.zip |
r2285: Remove more static data, fix spelling in a comment.
(This used to be commit 2c701f59a7f232fed624f7cec62dd494dd32c2d9)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libcli/auth/ntlmssp.c | 4 | ||||
-rw-r--r-- | source4/libcli/auth/ntlmssp.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source4/libcli/auth/ntlmssp.c b/source4/libcli/auth/ntlmssp.c index e6839e1fea..592656e880 100644 --- a/source4/libcli/auth/ntlmssp.c +++ b/source4/libcli/auth/ntlmssp.c @@ -107,8 +107,8 @@ void debug_ntlmssp_flags(uint32_t neg_flags) static const uint8_t *get_challenge(const struct ntlmssp_state *ntlmssp_state) { - static uint8_t chal[8]; - generate_random_buffer(chal, sizeof(chal)); + uint8_t *chal = talloc(ntlmssp_state->mem_ctx, 8); + generate_random_buffer(chal, 8); return chal; } diff --git a/source4/libcli/auth/ntlmssp.h b/source4/libcli/auth/ntlmssp.h index 153669f7b4..a318025650 100644 --- a/source4/libcli/auth/ntlmssp.h +++ b/source4/libcli/auth/ntlmssp.h @@ -120,7 +120,7 @@ struct ntlmssp_state * Callback to get the 'challenge' used for NTLM authentication. * * @param ntlmssp_state This structure - * @return 8 bytes of challnege data, determined by the server to be the challenge for NTLM authentication + * @return 8 bytes of challenge data, determined by the server to be the challenge for NTLM authentication * */ const uint8_t *(*get_challenge)(const struct ntlmssp_state *ntlmssp_state); |