mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 20:39:33 +08:00
* sec_auth.cc (create_token): Initialize lsa handle to NULL, rather than
to INVALID_HANDLE_VALUE. (lsaauth): Ditto. (lsaprivkeyauth): Ditto. * setlsapwd.cc (setlsapwd): Don't initialize lsa handle.
This commit is contained in:
parent
c16097ed26
commit
58cc7a6498
@ -1,3 +1,11 @@
|
||||
2014-03-28 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* sec_auth.cc (create_token): Initialize lsa handle to NULL, rather than
|
||||
to INVALID_HANDLE_VALUE.
|
||||
(lsaauth): Ditto.
|
||||
(lsaprivkeyauth): Ditto.
|
||||
* setlsapwd.cc (setlsapwd): Don't initialize lsa handle.
|
||||
|
||||
2014-03-28 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* exceptions.cc (_cygtls::signal_debugger): Move memcpy to copy context
|
||||
|
@ -768,7 +768,7 @@ HANDLE
|
||||
create_token (cygsid &usersid, user_groups &new_groups, struct passwd *pw)
|
||||
{
|
||||
NTSTATUS status;
|
||||
LSA_HANDLE lsa = INVALID_HANDLE_VALUE;
|
||||
LSA_HANDLE lsa = NULL;
|
||||
|
||||
cygsidlist tmp_gsids (cygsidlist_auto, 12);
|
||||
|
||||
@ -932,7 +932,7 @@ lsaauth (cygsid &usersid, user_groups &new_groups, struct passwd *pw)
|
||||
cygsidlist tmp_gsids (cygsidlist_auto, 12);
|
||||
cygpsid pgrpsid;
|
||||
LSA_STRING name;
|
||||
HANDLE lsa_hdl = NULL, lsa = INVALID_HANDLE_VALUE;
|
||||
HANDLE lsa_hdl = NULL, lsa = NULL;
|
||||
LSA_OPERATIONAL_MODE sec_mode;
|
||||
NTSTATUS status, sub_status;
|
||||
ULONG package_id, size;
|
||||
@ -1173,7 +1173,7 @@ HANDLE
|
||||
lsaprivkeyauth (struct passwd *pw)
|
||||
{
|
||||
NTSTATUS status;
|
||||
HANDLE lsa = INVALID_HANDLE_VALUE;
|
||||
HANDLE lsa = NULL;
|
||||
HANDLE token = NULL;
|
||||
WCHAR sid[256];
|
||||
WCHAR domain[MAX_DOMAIN_NAME_LEN + 1];
|
||||
|
@ -40,7 +40,7 @@ unsigned long
|
||||
setlsapwd (const char *passwd, const char *username)
|
||||
{
|
||||
unsigned long ret = (unsigned long) -1;
|
||||
HANDLE lsa = INVALID_HANDLE_VALUE;
|
||||
HANDLE lsa;
|
||||
WCHAR sid[128];
|
||||
WCHAR key_name[128 + wcslen (CYGWIN_LSA_KEY_PREFIX)];
|
||||
PWCHAR data_buf = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user