search for: comment_return

Displaying 1 result from an estimated 1 matches for "comment_return".

2001 Feb 21
0
Private key files closed twice --
...7 @@ fp = fdopen(fd, "r"); if (fp == NULL) { error("fdopen failed"); + close(fd); return 0; } pk = PEM_read_PrivateKey(fp, NULL, NULL, (char *)passphrase); @@ -536,10 +537,11 @@ case KEY_RSA: case KEY_UNSPEC: ret = load_private_key_ssh2(fd, passphrase, key, comment_return); + break; default: + close(fd); break; } - close(fd); return ret; }