diff --git a/fairmq/ofi/Socket.cxx b/fairmq/ofi/Socket.cxx index 13c36073..1dc27704 100644 --- a/fairmq/ofi/Socket.cxx +++ b/fairmq/ofi/Socket.cxx @@ -189,7 +189,9 @@ auto Socket::BindDataEndpoint() -> void auto Socket::Connect(const string& address) -> bool try { fRemoteAddr = Context::VerifyAddress(address); - fNeedOfiMemoryRegistration = (fRemoteAddr.Protocol == "verbs"); + if (fRemoteAddr.Protocol == "verbs") { + fNeedOfiMemoryRegistration = true; + } InitOfi(fRemoteAddr);