Apache OpenOffice (AOO) Bugzilla – Issue 105738
ucb: suspicious && || in NeonSession.cxx
Last modified: 2010-01-08 09:30:28 UTC
in NeonSession.cxx we've got... bCanUseSystemCreds = (attempt == 0) && ne_has_support( NE_FEATURE_SSPI ) && ( ne_strcasecmp( inAuthProtocol, "NTLM" ) == 0 ) || ( ne_strcasecmp( inAuthProtocol, "Negotiate" ) == 0 ); i.e. this is parsed as... bCanUseSystemCreds = ((attempt == 0) && ne_has_support( NE_FEATURE_SSPI ) && ( ne_strcasecmp( inAuthProtocol, "NTLM" ) == 0 )) || ( ne_strcasecmp( inAuthProtocol, "Negotiate" ) == 0 ); is that definitely the intent ? If so patch to remove new gcc warning attached.
Created attachment 65252 [details] silence warnings, if what we have is what we want
cmc: Good catch. The current logic is indeed *not* intended. Thanks for the patch.
cmc: Forgot to mention that I will not apply your patch (because it implements the wrong logic - just without compiler warnings), but will fix the code myself.
-> DEFECT.
Fixed. => bCanUseSystemCreds = (attempt == 0) && ne_has_support( NE_FEATURE_SSPI ) && ( ( ne_strcasecmp( inAuthProtocol, "NTLM" ) == 0 ) || ( ne_strcasecmp( inAuthProtocol, "Negotiate" ) == 0 ) );
@cmc: please verify on CWS sb116
sane in sb116
integrated m69, closing