]> sourceware.org Git - newlib-cygwin.git/commitdiff
* security.cc (lsaauth): Initialize lsa to INVALID_HANDLE_VALUE to
authorCorinna Vinschen <corinna@vinschen.de>
Wed, 13 Dec 2006 09:53:42 +0000 (09:53 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 13 Dec 2006 09:53:42 +0000 (09:53 +0000)
avoid potential access violation.

winsup/cygwin/ChangeLog
winsup/cygwin/security.cc

index f622520a35acc7e4a52e8198ecfb3c1e2f342be4..38789fb758886cdb6f7374b8f1f7b1952b9faa95 100644 (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.
index 67a3ed2d05a30c97d24bf8227aabd562e25aa9b8..3aa6589585174d40921ec4b330270988c93e1e2c 100644 (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;
This page took 0.035395 seconds and 5 git commands to generate.