Skip to content

Commit 62360fe

Browse files
millertdjmdjm
authored andcommitted
upstream: For "ssh -V" always exit 0, there is no need to check opt
again. This was missed when the fallthrough in the switch case above it was removed. OK deraadt@ OpenBSD-Commit-ID: 5583e5d8f6d62a8a4215cfa95a69932f344c8120
1 parent 12492c0 commit 62360fe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ssh.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: ssh.c,v 1.583 2023/01/13 02:58:20 dtucker Exp $ */
1+
/* $OpenBSD: ssh.c,v 1.584 2023/01/17 18:52:44 millert Exp $ */
22
/*
33
* Author: Tatu Ylonen <[email protected]>
44
* Copyright (c) 1995 Tatu Ylonen <[email protected]>, Espoo, Finland
@@ -886,8 +886,7 @@ main(int ac, char **av)
886886
case 'V':
887887
fprintf(stderr, "%s, %s\n",
888888
SSH_RELEASE, SSH_OPENSSL_VERSION);
889-
if (opt == 'V')
890-
exit(0);
889+
exit(0);
891890
break;
892891
case 'w':
893892
if (options.tun_open == -1)

0 commit comments

Comments
 (0)