Skip to content

Commit

Permalink
OPENDNSSEC-886: Improper time calculation on 32 bits machine causes p…
Browse files Browse the repository at this point in the history
…urge time to be skipped (2.1)
  • Loading branch information
Hoda Rohani committed Jul 31, 2017
1 parent ec8c204 commit 1ba25ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enforcer/src/enforcer/enforcer.c
Expand Up @@ -2611,7 +2611,7 @@ removeDeadKeys(db_connection_t *dbconn, key_data_t** keylist,
key_purgable = 0;
break;
}
if (key_state_last_change(state) > key_time) {
if (key_time == -1 || key_state_last_change(state) > (unsigned int)key_time) {
key_time = key_state_last_change(state);
}
}
Expand Down

0 comments on commit 1ba25ec

Please sign in to comment.