diff options
| author | David Boreham <dboreham@redhat.com> | 2005-04-15 05:19:03 +0000 |
|---|---|---|
| committer | David Boreham <dboreham@redhat.com> | 2005-04-15 05:19:03 +0000 |
| commit | f34705baa21378e18051f1f553d8d88ff0f91c61 (patch) | |
| tree | 433963627ede08eaee3b258a6ff55d9b49377085 /ldap/synctools/passwordsync/passhand.cpp | |
| parent | 9a91595f4276b9a03d40d62d8f7cae4c8b66852f (diff) | |
| download | ds-f34705baa21378e18051f1f553d8d88ff0f91c61.tar.gz ds-f34705baa21378e18051f1f553d8d88ff0f91c61.tar.xz ds-f34705baa21378e18051f1f553d8d88ff0f91c61.zip | |
Fix instability in re-try and backoff mechanism
Diffstat (limited to 'ldap/synctools/passwordsync/passhand.cpp')
| -rw-r--r-- | ldap/synctools/passwordsync/passhand.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ldap/synctools/passwordsync/passhand.cpp b/ldap/synctools/passwordsync/passhand.cpp index 01b7a005..d5053966 100644 --- a/ldap/synctools/passwordsync/passhand.cpp +++ b/ldap/synctools/passwordsync/passhand.cpp @@ -139,6 +139,12 @@ int loadSet(PASS_INFO_LIST* passInfoList, char* filename) newPair.password = (char*)malloc(passwordLen); plainTextStream->read((char*)newPair.password, passwordLen); + // Backoff + newPair.backoffCount = 0; + + // Load time + time(&newPair.atTime); + passInfoList->push_back(newPair); } |
