Return to canohost.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.40, 2004/06/21 17:36:31 | version 1.41, 2004/07/21 11:51:29 | ||
---|---|---|---|
|
|
||
int | int | ||
get_remote_port(void) | get_remote_port(void) | ||
{ | { | ||
return get_port(0); | static int port = -1; | ||
/* Cache to avoid getpeername() on a dead connection */ | |||
if (port == -1) | |||
port = get_port(0); | |||
return port; | |||
} | } | ||
int | int |