From 4de1586ec3bb220f63a0889fbf8c09667ba87788 Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: May 12 2020 07:53:17 +0000 Subject: kdb: initialize flags in ipadb_delete_principal() Related: https://pagure.io/freeipa/issue/8291 Signed-off-by: Alexander Bokovoy Reviewed-By: Christian Heimes --- diff --git a/daemons/ipa-kdb/ipa_kdb_principals.c b/daemons/ipa-kdb/ipa_kdb_principals.c index da0b841..949c469 100644 --- a/daemons/ipa-kdb/ipa_kdb_principals.c +++ b/daemons/ipa-kdb/ipa_kdb_principals.c @@ -2579,7 +2579,7 @@ krb5_error_code ipadb_delete_principal(krb5_context kcontext, char *canonicalized = NULL; LDAPMessage *res = NULL; LDAPMessage *lentry; - unsigned int flags; + unsigned int flags = 0; ipactx = ipadb_get_context(kcontext); if (!ipactx) {