summaryrefslogtreecommitdiff
path: root/ssh-add.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-add.c')
-rw-r--r--ssh-add.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/ssh-add.c b/ssh-add.c
index b309582f5..5e8166f66 100644
--- a/ssh-add.c
+++ b/ssh-add.c
@@ -167,7 +167,7 @@ static int
167add_file(AuthenticationConnection *ac, const char *filename, int key_only) 167add_file(AuthenticationConnection *ac, const char *filename, int key_only)
168{ 168{
169 Key *private, *cert; 169 Key *private, *cert;
170 char *comment = NULL, *fp; 170 char *comment = NULL;
171 char msg[1024], *certpath = NULL; 171 char msg[1024], *certpath = NULL;
172 int fd, perms_ok, ret = -1; 172 int fd, perms_ok, ret = -1;
173 Buffer keyblob; 173 Buffer keyblob;
@@ -243,14 +243,6 @@ add_file(AuthenticationConnection *ac, const char *filename, int key_only)
243 } else { 243 } else {
244 fprintf(stderr, "Could not add identity: %s\n", filename); 244 fprintf(stderr, "Could not add identity: %s\n", filename);
245 } 245 }
246 if (blacklisted_key(private, &fp) == 1) {
247 fprintf(stderr, "Public key %s blacklisted (see "
248 "ssh-vulnkey(1)); refusing to add it\n", fp);
249 free(fp);
250 key_free(private);
251 free(comment);
252 return -1;
253 }
254 246
255 /* Skip trying to load the cert if requested */ 247 /* Skip trying to load the cert if requested */
256 if (key_only) 248 if (key_only)