]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: potential NULL dereference for revoked hostkeys; reported
authordjm@openbsd.org <djm@openbsd.org>
Wed, 16 Oct 2019 06:05:39 +0000 (06:05 +0000)
committerDamien Miller <djm@mindrot.org>
Wed, 16 Oct 2019 06:08:38 +0000 (17:08 +1100)
by krishnaiah bommu

OpenBSD-Commit-ID: 35ff685e7cc9dd2e3fe2e3dfcdcb9bc5c79f6506

auth.c

diff --git a/auth.c b/auth.c
index ca450f4e44ffc617c6259c0bbcbc5fd7f1612140..b092f212cfe8ab41296591d8de2586f91e73e93e 100644 (file)
--- a/auth.c
+++ b/auth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth.c,v 1.141 2019/10/02 00:42:30 djm Exp $ */
+/* $OpenBSD: auth.c,v 1.142 2019/10/16 06:05:39 djm Exp $ */
 /*
  * Copyright (c) 2000 Markus Friedl.  All rights reserved.
  *
@@ -489,7 +489,7 @@ check_key_in_hostfiles(struct passwd *pw, struct sshkey *key, const char *host,
        host_status = check_key_in_hostkeys(hostkeys, key, &found);
        if (host_status == HOST_REVOKED)
                error("WARNING: revoked key for %s attempted authentication",
-                   found->host);
+                   host);
        else if (host_status == HOST_OK)
                debug("%s: key for %s found at %s:%ld", __func__,
                    found->host, found->file, found->line);