View | Details | Raw Unified | Return to bug 902
Collapse All | Expand All

(-)openssh-3.8.1p1/canohost.c (-1 / +8 lines)
Lines 382-388 Link Here
382
int
382
int
383
get_remote_port(void)
383
get_remote_port(void)
384
{
384
{
385
	return get_port(0);
385
	/*
386
	 * Caching is needed to avoid getpeername() on a dead connection.
387
	 */
388
	static int port = -1;
389
390
	if (port == -1)
391
		port = get_port(0);
392
	return port;
386
}
393
}
387
394
388
int
395
int

Return to bug 902