git.samba.org
/
metze
/
heimdal
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0616af
)
Use calloc().
author
Love Hörnquist Åstrand
<lha@kth.se>
Wed, 25 Mar 2009 15:38:04 +0000
(15:38 +0000)
committer
Love Hörnquist Åstrand
<lha@kth.se>
Wed, 25 Mar 2009 15:38:04 +0000
(15:38 +0000)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24947
ec53bebd
-3082-4978-b11e-
865c3cabbd6b
lib/hdb/keys.c
patch
|
blob
|
history
diff --git
a/lib/hdb/keys.c
b/lib/hdb/keys.c
index c2f74dd85bfa8532cbd42754b58f4eb48b499248..748e1ba0a17c1022d82c03c76408686557df00a2 100644
(file)
--- a/
lib/hdb/keys.c
+++ b/
lib/hdb/keys.c
@@
-218,7
+218,7
@@
add_enctype_to_key_set(Key **key_set, size_t *nkeyset,
key.key.keyvalue.data = NULL;
if (salt) {
- key.salt =
malloc(
sizeof(*key.salt));
+ key.salt =
calloc(1,
sizeof(*key.salt));
if (key.salt == NULL) {
free_Key(&key);
return ENOMEM;