summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2013-04-05 11:22:35 +1100
committerDarren Tucker <dtucker@zip.com.au>2013-04-05 11:22:35 +1100
commit31859a046f4b4888c9b34b035ab3485721a8ce18 (patch)
tree4933cbd3352be7547c7c3ba31b7df527f012f4ea
parent0059933c8d5f219c65a61df017225d9030ea3ae8 (diff)
- djm@cvs.openbsd.org 2013/02/22 22:09:01
[ssh.c] Allow IdenityFile=none; ok markus deraadt (and dtucker for an earlier version)
-rw-r--r--ChangeLog4
-rw-r--r--ssh.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 69ea7e8c..1bb462a9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -15,6 +15,10 @@
- markus@cvs.openbsd.org 2013/02/22 19:13:56
[sshconnect.c]
support ProxyCommand=- (stdin/out already point to the proxy); ok djm@
+ - djm@cvs.openbsd.org 2013/02/22 22:09:01
+ [ssh.c]
+ Allow IdenityFile=none; ok markus deraadt (and dtucker for an earlier
+ version)
20130401
- (dtucker) [openbsd-compat/bsd-cygwin_util.{c,h}] Don't include windows.h
diff --git a/ssh.c b/ssh.c
index 5d3f492f..5ec89f2c 100644
--- a/ssh.c
+++ b/ssh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh.c,v 1.372 2013/02/22 04:45:09 dtucker Exp $ */
+/* $OpenBSD: ssh.c,v 1.373 2013/02/22 22:09:01 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1536,7 +1536,8 @@ load_public_identity_files(void)
fatal("load_public_identity_files: gethostname: %s",
strerror(errno));
for (i = 0; i < options.num_identity_files; i++) {
- if (n_ids >= SSH_MAX_IDENTITY_FILES) {
+ if (n_ids >= SSH_MAX_IDENTITY_FILES ||
+ strcasecmp(options.identity_files[i], "none") == 0) {
xfree(options.identity_files[i]);
continue;
}