git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
033bc46
)
Make sure to allocate copy for arc4 data, to avoid problems freeing
author
Jelmer Vernooij
<jelmer@samba.org>
Sat, 11 Oct 2008 18:26:40 +0000
(20:26 +0200)
committer
Jelmer Vernooij
<jelmer@samba.org>
Sat, 11 Oct 2008 18:26:40 +0000
(20:26 +0200)
later.
lib/crypto/arcfour.c
patch
|
blob
|
history
diff --git
a/lib/crypto/arcfour.c
b/lib/crypto/arcfour.c
index b4773f404148791f5eb5bf2bcc48785b1685dfdd..e70713b7e6aedab351454134233165c8e9d2a73b 100644
(file)
--- a/
lib/crypto/arcfour.c
+++ b/
lib/crypto/arcfour.c
@@
-81,7
+81,7
@@
_PUBLIC_ void arcfour_crypt_blob(uint8_t *data, int len, const DATA_BLOB *key)
*/
_PUBLIC_ void arcfour_crypt(uint8_t *data, const uint8_t keystr[16], int len)
{
- DATA_BLOB key =
{ discard_const_p(uint8_t, keystr), 16 }
;
+ DATA_BLOB key =
data_blob_named(keystr, 16, "DATA_BLOB: "__location__)
;
arcfour_crypt_blob(data, len, &key);