hdb: Fix coverity warnings

This is a fix for a false positive that we can avoid by changing the
internal API in question.  Might as well.
This commit is contained in:
Nicolas Williams
2022-01-20 12:38:50 -06:00
parent d1564ce6e9
commit b991c4b2b3
4 changed files with 10 additions and 26 deletions

View File

@@ -999,7 +999,7 @@ derive_keys(krb5_context context,
base_keys.val = 0;
base_keys.len = 0;
if (ret == 0)
ret = hdb_remove_base_keys(context, h, &base_keys);
ret = _hdb_remove_base_keys(context, h, &base_keys, &kr);
/* Make sure we have h->etypes */
if (ret == 0 && !h->etypes)