Added a flag to ensure that we don't mod/store hdb entries fetched with specified kvno.

This commit is contained in:
Nicolas Williams
2011-07-13 01:48:32 -05:00
committed by Nicolas Williams
parent e7f385ad0d
commit 34189a23fe
4 changed files with 6 additions and 1 deletions

View File

@@ -312,6 +312,8 @@ _hdb_store(krb5_context context, HDB *db, unsigned flags, hdb_entry_ex *entry)
krb5_data key, value;
int code;
if (entry->entry.flags.do_not_store)
return HDB_ERR_MISUSE;
/* check if new aliases already is used */
code = hdb_check_aliases(context, db, entry);
if (code)