diff options
author | djm@openbsd.org <djm@openbsd.org> | 2019-10-16 06:05:39 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2019-10-16 17:08:38 +1100 |
commit | 76ed2199491397e0f9902ade80d5271e4a9b2630 (patch) | |
tree | bff516c4baa49171ef3e2092088303e751ff7fe1 | |
parent | 6500c3bc71bf4fe14972c1177e6b93f1164d07a4 (diff) |
upstream: potential NULL dereference for revoked hostkeys; reported
by krishnaiah bommu
OpenBSD-Commit-ID: 35ff685e7cc9dd2e3fe2e3dfcdcb9bc5c79f6506
-rw-r--r-- | auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth.c,v 1.141 2019/10/02 00:42:30 djm Exp $ */ | 1 | /* $OpenBSD: auth.c,v 1.142 2019/10/16 06:05:39 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
4 | * | 4 | * |
@@ -489,7 +489,7 @@ check_key_in_hostfiles(struct passwd *pw, struct sshkey *key, const char *host, | |||
489 | host_status = check_key_in_hostkeys(hostkeys, key, &found); | 489 | host_status = check_key_in_hostkeys(hostkeys, key, &found); |
490 | if (host_status == HOST_REVOKED) | 490 | if (host_status == HOST_REVOKED) |
491 | error("WARNING: revoked key for %s attempted authentication", | 491 | error("WARNING: revoked key for %s attempted authentication", |
492 | found->host); | 492 | host); |
493 | else if (host_status == HOST_OK) | 493 | else if (host_status == HOST_OK) |
494 | debug("%s: key for %s found at %s:%ld", __func__, | 494 | debug("%s: key for %s found at %s:%ld", __func__, |
495 | found->host, found->file, found->line); | 495 | found->host, found->file, found->line); |