summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh_api.c
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2021-01-27 09:26:53 +0000
committerdjm <djm@openbsd.org>2021-01-27 09:26:53 +0000
commite9d148002645cf940f00f302cb4b8cd9c8931a72 (patch)
treef069aab07aa0d8db3d5a2dd8fb7a295484b3b0b9 /usr.bin/ssh/ssh_api.c
parentBe consistent in not using parameter names for function prototypes. (diff)
downloadwireguard-openbsd-e9d148002645cf940f00f302cb4b8cd9c8931a72.tar.xz
wireguard-openbsd-e9d148002645cf940f00f302cb4b8cd9c8931a72.zip
remove global variable used to stash compat flags and use the
purpose-built ssh->compat variable instead; feedback/ok markus@
Diffstat (limited to 'usr.bin/ssh/ssh_api.c')
-rw-r--r--usr.bin/ssh/ssh_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh_api.c b/usr.bin/ssh/ssh_api.c
index 3a4792a4ed7..27b9c9e2410 100644
--- a/usr.bin/ssh/ssh_api.c
+++ b/usr.bin/ssh/ssh_api.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh_api.c,v 1.24 2020/12/29 00:59:15 djm Exp $ */
+/* $OpenBSD: ssh_api.c,v 1.25 2021/01/27 09:26:54 djm Exp $ */
/*
* Copyright (c) 2012 Markus Friedl. All rights reserved.
*
@@ -386,7 +386,7 @@ _ssh_read_banner(struct ssh *ssh, struct sshbuf *banner)
debug("Remote protocol version %d.%d, remote software version %.100s",
remote_major, remote_minor, remote_version);
- ssh->compat = compat_datafellows(remote_version);
+ compat_banner(ssh, remote_version);
if (remote_major == 1 && remote_minor == 99) {
remote_major = 2;
remote_minor = 0;