Avoid useless work related to keepold.
This commit is contained in:
@@ -59,6 +59,7 @@ change(void *server_handle,
|
|||||||
if(ret)
|
if(ret)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
if (keepold || cond) {
|
||||||
/*
|
/*
|
||||||
* We save these for now so we can handle password history checking;
|
* We save these for now so we can handle password history checking;
|
||||||
* we handle keepold further below.
|
* we handle keepold further below.
|
||||||
@@ -66,6 +67,7 @@ change(void *server_handle,
|
|||||||
ret = hdb_add_current_keys_to_history(context->context, &ent.entry);
|
ret = hdb_add_current_keys_to_history(context->context, &ent.entry);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto out;
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
if (context->db->hdb_capability_flags & HDB_CAP_F_HANDLE_PASSWORDS) {
|
if (context->db->hdb_capability_flags & HDB_CAP_F_HANDLE_PASSWORDS) {
|
||||||
ret = context->db->hdb_password(context->context, context->db,
|
ret = context->db->hdb_password(context->context, context->db,
|
||||||
|
Reference in New Issue
Block a user