Minor code simplification in connect_by_name

Signed-off-by: John Else <john.else@citrix.com>