diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2001-05-14 14:14:19 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2001-05-14 14:14:19 +0000 |
commit | 5aac6665c719ab4f90890591dffb166a608f32de (patch) | |
tree | 15b040c9ca4e654abb7d8501009cca12b79f9513 /winsup/cygwin/security.cc | |
parent | df7320e1ba746744947ebbd91641ee8720e803e4 (diff) | |
download | newlib-5aac6665c719ab4f90890591dffb166a608f32de.zip newlib-5aac6665c719ab4f90890591dffb166a608f32de.tar.gz newlib-5aac6665c719ab4f90890591dffb166a608f32de.tar.bz2 |
* security.cc (subauth): Check if Secur32.dll could be loaded.
Diffstat (limited to 'winsup/cygwin/security.cc')
-rw-r--r-- | winsup/cygwin/security.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/winsup/cygwin/security.cc b/winsup/cygwin/security.cc index 9f5605a..5755cc3 100644 --- a/winsup/cygwin/security.cc +++ b/winsup/cygwin/security.cc @@ -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); |