Skip to content

Commit

Permalink
upstream: remove duplicate check; GHPR392 from Pedro Martelletto
Browse files Browse the repository at this point in the history
OpenBSD-Commit-ID: 597ab7dd3f0e78939d2659fc1904d0f39ee95487
  • Loading branch information
djmdjm committed Oct 18, 2024
1 parent d9cd208 commit 9c97b6a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions sshconnect2.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $OpenBSD: sshconnect2.c,v 1.375 2024/09/09 02:39:57 djm Exp $ */
/* $OpenBSD: sshconnect2.c,v 1.376 2024/10/18 05:45:40 djm Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
* Copyright (c) 2008 Damien Miller. All rights reserved.
Expand Down Expand Up @@ -1885,10 +1885,8 @@ userauth_pubkey(struct ssh *ssh)
debug("Trying private key: %s", id->filename);
id->key = load_identity_file(id);
if (id->key != NULL) {
if (id->key != NULL) {
id->isprivate = 1;
sent = sign_and_send_pubkey(ssh, id);
}
id->isprivate = 1;
sent = sign_and_send_pubkey(ssh, id);
sshkey_free(id->key);
id->key = NULL;
id->isprivate = 0;
Expand Down

0 comments on commit 9c97b6a

Please sign in to comment.