X-Git-Url: https://gitweb.dragonflybsd.org/~tuxillo/dragonfly.git/blobdiff_plain/36e94dc5bac047676e52d6d94a07db1b31c653e3..3e3d72802874166f1927330e402ca707bd582b6e:/crypto/openssh/compat.c diff --git a/crypto/openssh/compat.c b/crypto/openssh/compat.c index 4d286e8e9a..f62618c327 100644 --- a/crypto/openssh/compat.c +++ b/crypto/openssh/compat.c @@ -175,6 +175,15 @@ compat_datafellows(const char *version) if (match_pattern_list(version, check[i].pat, strlen(check[i].pat), 0) == 1) { datafellows = check[i].bugs; + /* Check to see if the remote side is OpenSSH and not HPN */ + if(strstr(version,"OpenSSH") != NULL) + { + if (strstr(version,"hpn") == NULL) + { + datafellows |= SSH_BUG_LARGEWINDOW; + debug("Remote is NON-HPN aware"); + } + } debug("match: %s pat %s compat 0x%08x", version, check[i].pat, datafellows); return;