diff options
author | Greg Hudson <ghudson@mit.edu> | 2013-07-15 12:20:26 -0400 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2013-07-15 12:20:26 -0400 |
commit | d9457b501cbab535e5968dbdf195ca334b9fa555 (patch) | |
tree | c9ff36befead0c3530f82b1574ffeafb7333af94 /doc/admin/admin_commands | |
parent | 4365d313c6109988268b746bcaf1c08f7b7a593c (diff) | |
download | krb5-d9457b501cbab535e5968dbdf195ca334b9fa555.tar.gz krb5-d9457b501cbab535e5968dbdf195ca334b9fa555.tar.xz krb5-d9457b501cbab535e5968dbdf195ca334b9fa555.zip |
Avoid allocating zero key_data structures
When we allocate space for an array of key_data structures, make sure
we allocate at least one, so we don't spuriously fail on platforms
where malloc(0) returns NULL. Where we use malloc, use k5calloc
instead. Where we use krb5_db_alloc or realloc, just allocate an
extra entry.
Diffstat (limited to 'doc/admin/admin_commands')
0 files changed, 0 insertions, 0 deletions