summaryrefslogtreecommitdiff
path: root/compat.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2012-09-06 21:21:56 +1000
committerDarren Tucker <dtucker@zip.com.au>2012-09-06 21:21:56 +1000
commit00c1518a4d0e610e319433fa588cc1fbdfbff0b1 (patch)
tree51e08c6435bc2aeed0e5cc7b4370f4c3a125aa06 /compat.c
parentf09a8a6c6d8c06b9b855cf902e2a7129932a25e0 (diff)
- djm@cvs.openbsd.org 2012/08/17 01:30:00
[compat.c sshconnect.c] Send client banner immediately, rather than waiting for the server to move first for SSH protocol 2 connections (the default). Patch based on one in bz#1999 by tls AT panix.com, feedback dtucker@ ok markus@
Diffstat (limited to 'compat.c')
-rw-r--r--compat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/compat.c b/compat.c
index 0dc089fd..f680f4fe 100644
--- a/compat.c
+++ b/compat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: compat.c,v 1.79 2011/09/23 07:45:05 markus Exp $ */
+/* $OpenBSD: compat.c,v 1.80 2012/08/17 01:30:00 djm Exp $ */
/*
* Copyright (c) 1999, 2000, 2001, 2002 Markus Friedl. All rights reserved.
*
@@ -45,6 +45,8 @@ int datafellows = 0;
void
enable_compat20(void)
{
+ if (compat20)
+ return;
debug("Enabling compatibility mode for protocol 2.0");
compat20 = 1;
}