diff options
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -40,7 +40,7 @@ | |||
40 | */ | 40 | */ |
41 | 41 | ||
42 | #include "includes.h" | 42 | #include "includes.h" |
43 | RCSID("$OpenBSD: sshd.c,v 1.224 2002/02/04 12:15:25 markus Exp $"); | 43 | RCSID("$OpenBSD: sshd.c,v 1.225 2002/02/11 16:17:55 markus Exp $"); |
44 | 44 | ||
45 | #include <openssl/dh.h> | 45 | #include <openssl/dh.h> |
46 | #include <openssl/bn.h> | 46 | #include <openssl/bn.h> |
@@ -1207,8 +1207,9 @@ main(int ac, char **av) | |||
1207 | * machine, he can connect from any port. So do not use these | 1207 | * machine, he can connect from any port. So do not use these |
1208 | * authentication methods from machines that you do not trust. | 1208 | * authentication methods from machines that you do not trust. |
1209 | */ | 1209 | */ |
1210 | if (remote_port >= IPPORT_RESERVED || | 1210 | if (options.rhosts_authentication && |
1211 | remote_port < IPPORT_RESERVED / 2) { | 1211 | (remote_port >= IPPORT_RESERVED || |
1212 | remote_port < IPPORT_RESERVED / 2)) { | ||
1212 | debug("Rhosts Authentication disabled, " | 1213 | debug("Rhosts Authentication disabled, " |
1213 | "originating port %d not trusted.", remote_port); | 1214 | "originating port %d not trusted.", remote_port); |
1214 | options.rhosts_authentication = 0; | 1215 | options.rhosts_authentication = 0; |