bug in readconf.c

Martin Siegert siegert at sfu.ca
Fri Jan 25 11:15:31 EST 2002


Hi,

there is a tiny bug in readconf.c: options->use_privileged_port is always
set to 0 regardless of whether -P is specified or not. This has the effect
that RhostsAuthentication is disabled even if "RhostsAuthentication yes"
is specified.

The (trivial) patch is appended below.

Martin

========================================================================
Martin Siegert
Academic Computing Services                        phone: (604) 291-4691
Simon Fraser University                            fax:   (604) 291-4242
Burnaby, British Columbia                          email: siegert at sfu.ca
Canada  V5A 1S6
========================================================================

--- openssh-3.0.2p1/readconf.c.orig	Wed Jan 23 19:44:13 2002
+++ openssh-3.0.2p1/readconf.c	Wed Jan 23 19:44:45 2002
@@ -822,7 +822,7 @@
 	if (options->gateway_ports == -1)
 		options->gateway_ports = 0;
 	if (options->use_privileged_port == -1)
-		options->use_privileged_port = 0;
+		options->use_privileged_port = 1;
 	if (options->rhosts_authentication == -1)
 		options->rhosts_authentication = 1;
 	if (options->rsa_authentication == -1)



More information about the openssh-unix-dev mailing list