diff options
author | 2020-09-09 21:57:27 +0000 | |
---|---|---|
committer | 2020-09-09 21:57:27 +0000 | |
commit | f39545a20f18aa3ac26ae350bbb5db0d4b100991 (patch) | |
tree | 1a9de3f0efb2642ce2c78323c9808efe9036ac69 /usr.bin/ssh/sshconnect.c | |
parent | Delete dead code. (diff) | |
download | wireguard-openbsd-f39545a20f18aa3ac26ae350bbb5db0d4b100991.tar.xz wireguard-openbsd-f39545a20f18aa3ac26ae350bbb5db0d4b100991.zip |
For the hostkey confirmation message:
> Are you sure you want to continue connecting (yes/no/[fingerprint])?
compare the fingerprint case sensitively; spotted Patrik Lundin
ok dtucker
Diffstat (limited to 'usr.bin/ssh/sshconnect.c')
-rw-r--r-- | usr.bin/ssh/sshconnect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshconnect.c b/usr.bin/ssh/sshconnect.c index fc37b0dfd6a..fdf0c2d9c66 100644 --- a/usr.bin/ssh/sshconnect.c +++ b/usr.bin/ssh/sshconnect.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshconnect.c,v 1.331 2020/08/11 09:49:57 djm Exp $ */ +/* $OpenBSD: sshconnect.c,v 1.332 2020/09/09 21:57:27 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -575,7 +575,7 @@ confirm(const char *prompt, const char *fingerprint) if (p[0] == '\0' || strcasecmp(p, "no") == 0) ret = 0; else if (strcasecmp(p, "yes") == 0 || (fingerprint != NULL && - strcasecmp(p, fingerprint) == 0)) + strcmp(p, fingerprint) == 0)) ret = 1; free(cp); if (ret != -1) |