diff options
author | Volker Lendecke <vl@samba.org> | 2009-08-25 12:29:25 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-08-29 19:42:25 +0200 |
commit | ae6a6690d5ed55935c1fa0ad2800d83455c94382 (patch) | |
tree | b57ce559fbe6b98d8fb187f258c873624c94e264 | |
parent | 99cf696150a1b8e24a9d87981b710b703045a2a5 (diff) | |
download | samba-ae6a6690d5ed55935c1fa0ad2800d83455c94382.tar.gz samba-ae6a6690d5ed55935c1fa0ad2800d83455c94382.tar.bz2 samba-ae6a6690d5ed55935c1fa0ad2800d83455c94382.zip |
s3:winbind: Make wb_seqnums.c update the winbind cache seqnums
-rw-r--r-- | source3/winbindd/wb_seqnums.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/source3/winbindd/wb_seqnums.c b/source3/winbindd/wb_seqnums.c index f4044338a1..e6efb9b99a 100644 --- a/source3/winbindd/wb_seqnums.c +++ b/source3/winbindd/wb_seqnums.c @@ -1,6 +1,8 @@ /* Unix SMB/CIFS implementation. - async seqnums + + async seqnums, update the seqnums in winbindd_cache.c + Copyright (C) Volker Lendecke 2009 This program is free software; you can redistribute it and/or modify @@ -100,7 +102,16 @@ static void wb_seqnums_done(struct tevent_req *subreq) state->stati[i] = status; if (NT_STATUS_IS_OK(status)) { state->seqnums[i] = seqnum; + + /* + * This first assignment might be removed + * later + */ state->domains[i]->sequence_number = seqnum; + + wcache_store_seqnum(state->domains[i]->name, + state->seqnums[i], + time(NULL)); } break; } |