OSDN Git Service

* security.cc (subauth): Check if Secur32.dll could be loaded.
authorcorinna <corinna>
Mon, 14 May 2001 14:14:18 +0000 (14:14 +0000)
committercorinna <corinna>
Mon, 14 May 2001 14:14:18 +0000 (14:14 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/security.cc

index 8185325..41310f5 100644 (file)
@@ -1,3 +1,7 @@
+Mon May 14 16:13:00 2001  Corinna Vinschen <corinna@vinschen.de>
+
+       * security.cc (subauth): Check if Secur32.dll could be loaded.
+
 Sun May 13 22:49:04 2001  Christopher Faylor <cgf@cygnus.com>
 
        * path.cc (path_conv::check): Revert allow_ntsec check so that volume
index 9f5605a..5755cc3 100644 (file)
@@ -195,6 +195,11 @@ subauth (struct passwd *pw)
       set_errno (LsaNtStatusToWinError(ret));
       return INVALID_HANDLE_VALUE;
     }
+  else if (GetLastError () == ERROR_PROC_NOT_FOUND)
+    {
+      debug_printf ("Couldn't load Secur32.dll");
+      return INVALID_HANDLE_VALUE;
+    }
   /* Get handle to MSV1_0 package. */
   str2lsa (name, MSV1_0_PACKAGE_NAME);
   ret = LsaLookupAuthenticationPackage(lsa_hdl, &name, &package_id);