Skip to content

Commit

Permalink
upstream: For the hostkey confirmation message:
Browse files Browse the repository at this point in the history
> Are you sure you want to continue connecting (yes/no/[fingerprint])?

compare the fingerprint case sensitively; spotted Patrik Lundin
ok dtucker

OpenBSD-Commit-ID: 73097afee1b3a5929324e345ba4a4a42347409f2
  • Loading branch information
djmdjm authored and daztucker committed Sep 16, 2020
1 parent f2950ba commit c3c786c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sshconnect.c
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
* Copyright (c) 1995 Tatu Ylonen <[email protected]>, Espoo, Finland
Expand Down Expand Up @@ -597,7 +597,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)
Expand Down

0 comments on commit c3c786c

Please sign in to comment.