Skip to content

Commit 7041f41

Browse files
committed
session openssl REFACTOR unused var and label
1 parent 34623d4 commit 7041f41

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/session_openssl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1217,6 +1217,7 @@ nc_tls_privkey_export_openssh(EVP_PKEY *pkey, char **privkey)
12171217
char *pem = NULL;
12181218
ssh_key sshkey = NULL;
12191219

1220+
(void)pkey;
12201221
*privkey = NULL;
12211222

12221223
/* older versions of libssh (< v0.11.0) do not support exporting to OpenSSH format,
@@ -1253,9 +1254,9 @@ nc_tls_privkey_export_openssh(EVP_PKEY *pkey, char **privkey)
12531254
rc = 1;
12541255
goto cleanup;
12551256
}
1256-
#endif
12571257

12581258
cleanup:
1259+
#endif
12591260
BIO_free(bio);
12601261
free(pem);
12611262
ssh_key_free(sshkey);

0 commit comments

Comments
 (0)