diff options
author | Nathaniel McCallum <nathaniel@themccallums.org> | 2013-11-12 10:52:51 -0500 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2014-02-19 10:15:36 +0100 |
commit | b769d1c18678b5eede7505dec7938f6836070044 (patch) | |
tree | e4aa5b0c10baedf40a0fa5edcd15ae027e7ce30c /util/ipa_krb5.c | |
parent | f67268db6855738350481491119b9be29ba1f22d (diff) | |
download | freeipa.git-b769d1c18678b5eede7505dec7938f6836070044.tar.gz freeipa.git-b769d1c18678b5eede7505dec7938f6836070044.tar.xz freeipa.git-b769d1c18678b5eede7505dec7938f6836070044.zip |
Add support to ipa-kdb for keyless principals
https://fedorahosted.org/freeipa/ticket/3779
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Diffstat (limited to 'util/ipa_krb5.c')
-rw-r--r-- | util/ipa_krb5.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/ipa_krb5.c b/util/ipa_krb5.c index 934fd27d..cc84f992 100644 --- a/util/ipa_krb5.c +++ b/util/ipa_krb5.c @@ -296,6 +296,9 @@ void ipa_krb5_free_key_data(krb5_key_data *keys, int num_keys) { int i; + if (keys == NULL) + return; + for (i = 0; i < num_keys; i++) { /* try to wipe key from memory, * hopefully the compiler will not optimize it away */ |