X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-sp-resolver.git;a=blobdiff_plain;f=src%2Fshibresolver%2Fresolver.cpp;fp=src%2Fshibresolver%2Fresolver.cpp;h=c23dc634124ef29b6804b8b6c7c910fe030d21f5;hp=d14600a9af89874c9b96c09f6fcf7785bdd08a4d;hb=32c43270d4ace5ecb83cb3c514640cfd0dc0aab4;hpb=c85d34f73156cd181491c3b20bd64537c2568559 diff --git a/src/shibresolver/resolver.cpp b/src/shibresolver/resolver.cpp index d14600a..c23dc63 100644 --- a/src/shibresolver/resolver.cpp +++ b/src/shibresolver/resolver.cpp @@ -587,14 +587,14 @@ const RoleDescriptor* RemotedResolver::lookup( bool ShibbolethResolver::init(unsigned long features, const char* config, bool rethrow) { - if (features && SPConfig::OutOfProcess) { + if (features & SPConfig::OutOfProcess) { #ifndef SHIBSP_LITE features = features | SPConfig::AttributeResolution | SPConfig::Metadata | SPConfig::Trust | SPConfig::Credentials; #endif - if (!(features && SPConfig::InProcess)) + if (!(features & SPConfig::InProcess)) features |= SPConfig::Listener; } - else if (features && SPConfig::InProcess) { + else if (features & SPConfig::InProcess) { features |= SPConfig::Listener; } SPConfig::getConfig().setFeatures(features);