From b769d1c18678b5eede7505dec7938f6836070044 Mon Sep 17 00:00:00 2001 From: Nathaniel McCallum Date: Tue, 12 Nov 2013 10:52:51 -0500 Subject: Add support to ipa-kdb for keyless principals https://fedorahosted.org/freeipa/ticket/3779 Reviewed-By: Alexander Bokovoy --- util/ipa_krb5.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util') diff --git a/util/ipa_krb5.c b/util/ipa_krb5.c index 934fd27d8..cc84f9920 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 */ -- cgit