netlogon_creds_cli: Protect netlogon_creds_cli_auth by _lck
authorVolker Lendecke <vl@samba.org>
Wed, 13 Sep 2017 18:51:47 +0000 (11:51 -0700)
committerVolker Lendecke <vl@samba.org>
Mon, 25 Sep 2017 07:43:13 +0000 (09:43 +0200)
commit4d19f8b4b957814b11d096acc75e670878bc8240
treefe9b4d19d5e1862e2a947e0dd96a8a207951e176
parentf6e39450f539e2014854debb485023e46a8f16d2
netlogon_creds_cli: Protect netlogon_creds_cli_auth by _lck

This widens the lock range to cover the check for established
credentials. Before this patch it could happen that more than one
winbind finds no credentials and does the auth3. This can pile up.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
libcli/auth/netlogon_creds_cli.c
source3/libsmb/trusts_util.c
source3/rpc_client/cli_netlogon.c