From 56face17410f2ca07a3261b1265da544df61568a Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 13 Dec 2006 09:53:42 +0000 Subject: [PATCH] * security.cc (lsaauth): Initialize lsa to INVALID_HANDLE_VALUE to avoid potential access violation. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/security.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 + + * security.cc (lsaauth): Initialize lsa to INVALID_HANDLE_VALUE to + avoid potential access violation. + 2006-12-12 Corinna Vinschen * 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; -- 2.43.5