Second part of fix for bug #7072 - Accounts can't be unlocked from ldap.
[ira/wip.git] / source3 / passdb / login_cache.c
index 5e1c9775cdf19c09d5372484dd779955cfbbdb5c..5630372a013eeea69a511f1c15f3dd4e13f7c52f 100644 (file)
@@ -96,7 +96,8 @@ LOGIN_CACHE * login_cache_read(struct samu *sampass)
        ZERO_STRUCTP(entry);
 
        if (tdb_unpack (databuf.dptr, databuf.dsize, SAM_CACHE_FORMAT,
-                       &entry->entry_timestamp, &entry->acct_ctrl, 
+                       &entry_timestamp,
+                       &entry->acct_ctrl,
                        &entry->bad_password_count,
                        &bad_password_time) == -1) {
                DEBUG(7, ("No cache entry found\n"));