summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/sshconnect2.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2004-03-05 10:53:58 +0000
committermarkus <markus@openbsd.org>2004-03-05 10:53:58 +0000
commit0b83b404e889875f7a5faf2c70c315de677f7286 (patch)
treeecb31d96aaffa186895a7cac8d343287d2d1b378 /usr.bin/ssh/sshconnect2.c
parentdon't leak memory. free and netbsd via Patrick Latifi (diff)
downloadwireguard-openbsd-0b83b404e889875f7a5faf2c70c315de677f7286.tar.xz
wireguard-openbsd-0b83b404e889875f7a5faf2c70c315de677f7286.zip
add IdentitiesOnly; ok djm@, pb@
Diffstat (limited to 'usr.bin/ssh/sshconnect2.c')
-rw-r--r--usr.bin/ssh/sshconnect2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshconnect2.c b/usr.bin/ssh/sshconnect2.c
index a5787598f1b..c20e02ab524 100644
--- a/usr.bin/ssh/sshconnect2.c
+++ b/usr.bin/ssh/sshconnect2.c
@@ -23,7 +23,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: sshconnect2.c,v 1.134 2004/01/19 21:25:15 markus Exp $");
+RCSID("$OpenBSD: sshconnect2.c,v 1.135 2004/03/05 10:53:58 markus Exp $");
#include "ssh.h"
#include "ssh2.h"
@@ -1042,7 +1042,7 @@ pubkey_prepare(Authctxt *authctxt)
break;
}
}
- if (!found) {
+ if (!found && !options.identities_only) {
id = xmalloc(sizeof(*id));
memset(id, 0, sizeof(*id));
id->key = key;