Avoid useless work related to keepold.

This commit is contained in:
Nicolas Williams
2011-07-19 12:34:06 -05:00
parent 9adb40a06e
commit 784e6a69df

View File

@@ -59,13 +59,15 @@ 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 handle keepold further below. * We save these for now so we can handle password history checking;
*/ * we handle keepold further below.
ret = hdb_add_current_keys_to_history(context->context, &ent.entry); */
if (ret) ret = hdb_add_current_keys_to_history(context->context, &ent.entry);
goto out; if (ret)
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,