diff options
author | Tor Lillqvist <tml@collabora.com> | 2017-07-18 20:47:16 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2017-07-18 21:25:57 +0300 |
commit | e19c0a3dec7ac9809aba461c03d45a07d601fe9a (patch) | |
tree | 4db650b6001fed3ae971a6265d17c9e4fde64186 /ucb/source | |
parent | a4283e5b7b4397bfdad3605f1cd490961c28c0de (diff) |
loplugin:oncevar
Change-Id: Ic7c5ec9bb7cc7aff61279f2027cf5a9e1b31e36f
Diffstat (limited to 'ucb/source')
-rw-r--r-- | ucb/source/ucp/webdav-neon/NeonSession.cxx | 6 |
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( |