From: djm Date: Mon, 7 Jun 2021 03:38:38 +0000 (+0000) Subject: fix debug message when finding a private key to match a certificate X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=878426f895a8932fa31cc5b9b8d1c72d9aefd2d9;p=openbsd fix debug message when finding a private key to match a certificate being attempted for user authentication. Previously it would print the certificate's path, whereas it was supposed to be showing the private key's path. Patch from Alex Sherwin via GHPR247 --- diff --git a/usr.bin/ssh/sshconnect2.c b/usr.bin/ssh/sshconnect2.c index f1691bd6b93..2f2d6ff1f2e 100644 --- a/usr.bin/ssh/sshconnect2.c +++ b/usr.bin/ssh/sshconnect2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshconnect2.c,v 1.348 2021/06/06 03:40:39 djm Exp $ */ +/* $OpenBSD: sshconnect2.c,v 1.349 2021/06/07 03:38:38 djm Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * Copyright (c) 2008 Damien Miller. All rights reserved. @@ -1375,8 +1375,8 @@ sign_and_send_pubkey(struct ssh *ssh, Identity *id) } if (sign_id != NULL) { debug2_f("using private key \"%s\"%s for " - "certificate", id->filename, - id->agent_fd != -1 ? " from agent" : ""); + "certificate", sign_id->filename, + sign_id->agent_fd != -1 ? " from agent" : ""); } else { debug_f("no separate private key for certificate " "\"%s\"", id->filename);