summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sshconnect2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sshconnect2.c b/sshconnect2.c
index 9b0f845ce..d2de5bc96 100644
--- a/sshconnect2.c
+++ b/sshconnect2.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshconnect2.c,v 1.263 2017/05/31 07:00:13 markus Exp $ */ 1/* $OpenBSD: sshconnect2.c,v 1.264 2017/06/14 00:31:38 dtucker Exp $ */
2/* 2/*
3 * Copyright (c) 2000 Markus Friedl. All rights reserved. 3 * Copyright (c) 2000 Markus Friedl. All rights reserved.
4 * Copyright (c) 2008 Damien Miller. All rights reserved. 4 * Copyright (c) 2008 Damien Miller. All rights reserved.
@@ -469,7 +469,8 @@ userauth(Authctxt *authctxt, char *authlist)
469 for (;;) { 469 for (;;) {
470 Authmethod *method = authmethod_get(authlist); 470 Authmethod *method = authmethod_get(authlist);
471 if (method == NULL) 471 if (method == NULL)
472 fatal("Permission denied (%s).", authlist); 472 fatal("%s@%s: Permission denied (%s).",
473 authctxt->server_user, authctxt->host, authlist);
473 authctxt->method = method; 474 authctxt->method = method;
474 475
475 /* reset the per method handler */ 476 /* reset the per method handler */