diff --git a/pvAccessApp/remoteClient/clientContextImpl.cpp b/pvAccessApp/remoteClient/clientContextImpl.cpp index 99468ae..80b601e 100644 --- a/pvAccessApp/remoteClient/clientContextImpl.cpp +++ b/pvAccessApp/remoteClient/clientContextImpl.cpp @@ -3001,10 +3001,12 @@ namespace epics { auto_ptr addresses; if (!addressesStr.empty()) + { addresses.reset(getSocketAddressList(addressesStr, PVA_SERVER_PORT)); - if (addresses->empty()) - addresses.reset(); - + if (addresses->empty()) + addresses.reset(); + } + Channel::shared_pointer channel = context->createChannelInternal(channelName, channelRequester, priority, addresses); if (channel.get()) channelRequester->channelCreated(Status::Ok, channel);