p4raw-id: //depot/cfgperl@3824
last;
}
+ # don't try to connect unless we're given a PeerAddr
+ last unless exists($arg->{PeerAddr});
+
$raddr = shift @raddr;
- # don't connect unless we're given a port or address
- last unless defined($rport) || defined($raddr);
-
return _error($sock,'Cannot determine remote port')
unless($rport || $type == SOCK_DGRAM || $type == SOCK_RAW);