summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ucb/source/ucp/webdav-neon/NeonSession.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/ucb/source/ucp/webdav-neon/NeonSession.cxx b/ucb/source/ucp/webdav-neon/NeonSession.cxx
index 74bb47622524..ca87d6e4aad3 100644
--- a/ucb/source/ucp/webdav-neon/NeonSession.cxx
+++ b/ucb/source/ucp/webdav-neon/NeonSession.cxx
@@ -291,14 +291,14 @@ extern "C" int NeonSession_NeonAuth( void * inUserData,
//thePassWord = OUString::createFromAscii( inoutPassWord );
}
- bool bCanUseSystemCreds = false;
-
#if defined NE_FEATURE_SSPI && ! defined SYSTEM_NEON
- bCanUseSystemCreds
+ const bool bCanUseSystemCreds
= (attempt == 0) && // avoid endless loops
ne_has_support( NE_FEATURE_SSPI ) && // Windows-only feature.
( ( ne_strcasecmp( inAuthProtocol, "NTLM" ) == 0 ) ||
( ne_strcasecmp( inAuthProtocol, "Negotiate" ) == 0 ) );
+#else
+ const bool bCanUseSystemCreds = false;
#endif
int theRetVal = pListener->authenticate(