Remove busted precheck in create_s.c
This commit is contained in:
@@ -137,13 +137,6 @@ kadm5_s_create_principal_with_key(void *server_handle,
|
|||||||
if (ret)
|
if (ret)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
ret = context->db->hdb_fetch_kvno(context->context, context->db,
|
|
||||||
princ->principal, 0, 0, &ent);
|
|
||||||
if (ret == 0) {
|
|
||||||
ret = HDB_ERR_EXISTS;
|
|
||||||
goto out;
|
|
||||||
}
|
|
||||||
|
|
||||||
ret = hdb_seal_keys(context->context, context->db, &ent.entry);
|
ret = hdb_seal_keys(context->context, context->db, &ent.entry);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto out;
|
goto out;
|
||||||
@@ -202,13 +195,6 @@ kadm5_s_create_principal(void *server_handle,
|
|||||||
if (ret)
|
if (ret)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
ret = context->db->hdb_fetch_kvno(context->context, context->db,
|
|
||||||
princ->principal, 0, 0, &ent);
|
|
||||||
if (ret == 0) {
|
|
||||||
ret = HDB_ERR_EXISTS;
|
|
||||||
goto out;
|
|
||||||
}
|
|
||||||
|
|
||||||
ent.entry.keys.len = 0;
|
ent.entry.keys.len = 0;
|
||||||
ent.entry.keys.val = NULL;
|
ent.entry.keys.val = NULL;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user