summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2013-04-05 11:22:26 +1100
committerDarren Tucker <dtucker@zip.com.au>2013-04-05 11:22:26 +1100
commit15fd19c4c9943cf02bc6f462d52c86ee6a8f422e (patch)
treee8da2478adf81801c2cec3f0c499bd3212f66515 /ssh.c
parent5d1d9541a7c83963cd887b6b36e25b46463a05d4 (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)
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ssh.c b/ssh.c
index 5d3f492f0..5ec89f2cc 100644
--- a/ssh.c
+++ b/ssh.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh.c,v 1.372 2013/02/22 04:45:09 dtucker Exp $ */ 1/* $OpenBSD: ssh.c,v 1.373 2013/02/22 22:09:01 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1536,7 +1536,8 @@ load_public_identity_files(void)
1536 fatal("load_public_identity_files: gethostname: %s", 1536 fatal("load_public_identity_files: gethostname: %s",
1537 strerror(errno)); 1537 strerror(errno));
1538 for (i = 0; i < options.num_identity_files; i++) { 1538 for (i = 0; i < options.num_identity_files; i++) {
1539 if (n_ids >= SSH_MAX_IDENTITY_FILES) { 1539 if (n_ids >= SSH_MAX_IDENTITY_FILES ||
1540 strcasecmp(options.identity_files[i], "none") == 0) {
1540 xfree(options.identity_files[i]); 1541 xfree(options.identity_files[i]);
1541 continue; 1542 continue;
1542 } 1543 }