summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-02-13 13:54:44 +1100
committerDamien Miller <djm@mindrot.org>2002-02-13 13:54:44 +1100
commit654c03fd064618e3577d098837108263f4e5457a (patch)
tree35c495694f06ca7e5ff663e4b9e351b4775fd7b0 /sshd.c
parent2ce18dabf3fff6c83dd555b0f7b92d9e949e9b66 (diff)
- markus@cvs.openbsd.org 2002/02/11 16:17:55
[sshd.c] do not complain about port > 1024 if rhosts-auth is disabled
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sshd.c b/sshd.c
index fc07f9264..54eb5eb34 100644
--- a/sshd.c
+++ b/sshd.c
@@ -40,7 +40,7 @@
40 */ 40 */
41 41
42#include "includes.h" 42#include "includes.h"
43RCSID("$OpenBSD: sshd.c,v 1.224 2002/02/04 12:15:25 markus Exp $"); 43RCSID("$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;