diff options
Diffstat (limited to 'source3/libnet/libnet_samsync_passdb.c')
-rw-r--r-- | source3/libnet/libnet_samsync_passdb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libnet/libnet_samsync_passdb.c b/source3/libnet/libnet_samsync_passdb.c index 9d72194c03..cfcdb7cec2 100644 --- a/source3/libnet/libnet_samsync_passdb.c +++ b/source3/libnet/libnet_samsync_passdb.c @@ -179,7 +179,8 @@ static NTSTATUS sam_account_from_delta(struct samu *account, pdb_sethexhours(oldstr, pdb_get_hours(account)); pdb_sethexhours(newstr, r->logon_hours.bits); if (!strequal(oldstr, newstr)) - pdb_set_hours(account, r->logon_hours.bits, PDB_CHANGED); + pdb_set_hours(account, r->logon_hours.bits, + pdb_get_hours_len(account), PDB_CHANGED); } if (pdb_get_bad_password_count(account) != r->bad_password_count) |