* security.cc (lsaauth): Initialize lsa to INVALID_HANDLE_VALUE to

avoid potential access violation.
This commit is contained in:
Corinna Vinschen 2006-12-13 09:53:42 +00:00
parent 524e6a5ad9
commit 56face1741
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-12-13 Corinna Vinschen <corinna@vinschen.de>
* security.cc (lsaauth): Initialize lsa to INVALID_HANDLE_VALUE to
avoid potential access violation.
2006-12-12 Corinna Vinschen <corinna@vinschen.de>
* environ.cc (subauth_id_init): Remove.

View File

@ -944,7 +944,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;
HANDLE lsa_hdl = NULL, lsa = INVALID_HANDLE_VALUE;
LSA_OPERATIONAL_MODE sec_mode;
NTSTATUS ret, ret2;
ULONG package_id, size;