diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2021-05-26 01:47:25 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2021-05-26 01:47:25 +0000 |
commit | 1ed7fcc81f247d9050e3ff45536de76c0964954f (patch) | |
tree | 38d9935e3f00592a4d2962682f2bb89d108d0346 | |
parent | 879df70c3f9d6dfd798576c79b2dc21ef470c9c2 (diff) |
fix SEGV in UpdateHostkeys debug() message, triggered when the update
removed more host keys than remain present. Fix tested by reporter
James Cook, via bugs@
-rw-r--r-- | usr.bin/ssh/clientloop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/clientloop.c b/usr.bin/ssh/clientloop.c index 33a43baf8e8..2c97c868b67 100644 --- a/usr.bin/ssh/clientloop.c +++ b/usr.bin/ssh/clientloop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clientloop.c,v 1.363 2021/05/19 01:24:05 djm Exp $ */ +/* $OpenBSD: clientloop.c,v 1.364 2021/05/26 01:47:24 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -1938,7 +1938,7 @@ hostkeys_check_old(struct hostkey_foreach_line *l, void *_ctx) if (!sshkey_equal(l->key, ctx->old_keys[i])) continue; debug3_f("found deprecated %s key at %s:%ld as %s", - sshkey_ssh_name(ctx->keys[i]), l->path, l->linenum, + sshkey_ssh_name(ctx->old_keys[i]), l->path, l->linenum, hashed ? "[HASHED]" : l->hosts); ctx->old_key_seen = 1; break; |