summaryrefslogtreecommitdiff
path: root/auth1.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth1.c')
-rw-r--r--auth1.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/auth1.c b/auth1.c
index cc85aec74..fb37fadfe 100644
--- a/auth1.c
+++ b/auth1.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: auth1.c,v 1.75 2010/08/31 09:58:37 djm Exp $ */ 1/* $OpenBSD: auth1.c,v 1.76 2012/11/04 11:09:15 djm Exp $ */
2/* 2/*
3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
4 * All rights reserved 4 * All rights reserved
@@ -406,6 +406,11 @@ do_authentication(Authctxt *authctxt)
406 authctxt->pw = fakepw(); 406 authctxt->pw = fakepw();
407 } 407 }
408 408
409 /* Configuration may have changed as a result of Match */
410 if (options.num_auth_methods != 0)
411 fatal("AuthenticationMethods is not supported with SSH "
412 "protocol 1");
413
409 setproctitle("%s%s", authctxt->valid ? user : "unknown", 414 setproctitle("%s%s", authctxt->valid ? user : "unknown",
410 use_privsep ? " [net]" : ""); 415 use_privsep ? " [net]" : "");
411 416