diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2006-12-13 12:53:42 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2006-12-13 12:53:42 +0300 |
commit | 56face17410f2ca07a3261b1265da544df61568a (patch) | |
tree | f0c8879ae911eea2770514becdcc78097238c51c | |
parent | 524e6a5ad9085a299c9510a772fbf9cc47d4d9d9 (diff) |
* security.cc (lsaauth): Initialize lsa to INVALID_HANDLE_VALUE to
avoid potential access violation.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/security.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index f622520a3..38789fb75 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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. diff --git a/winsup/cygwin/security.cc b/winsup/cygwin/security.cc index 67a3ed2d0..3aa658958 100644 --- a/winsup/cygwin/security.cc +++ b/winsup/cygwin/security.cc @@ -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; |