]> git.ipfire.org Git - thirdparty/samba.git/commit
winbindd: use struct winbindd_domain_ref in struct winbindd_list_users_domstate
authorStefan Metzmacher <metze@samba.org>
Fri, 7 Feb 2025 12:57:45 +0000 (13:57 +0100)
committerRalph Boehme <slow@samba.org>
Sat, 8 Feb 2025 15:26:38 +0000 (15:26 +0000)
commitc325b9ce6fb6d46fa41c19c9cf0b5ce627f21c4b
tree409b0c08f8f2dee562591c79d78873fa2c34e926
parent6d3afb9df197bc01d536e0bc770f77848b46563d
winbindd: use struct winbindd_domain_ref in struct winbindd_list_users_domstate

In the next commits it will be possible that
struct winbindd_domain instances become stale
because trusted domains were reloaded.

That means aync state structure should not use
pointers to 'struct winbindd_domain' as they
can become stale!

Instead they should use 'struct winbindd_domain_ref domain'
in the async state and use winbindd_domain_ref_set/get()
to manage the 'struct winbindd_domain' pointer.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/winbindd/winbindd_list_users.c