1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-27 13:21:11 +03:00

packet_crypt: fix unused variable compiler warning

The local `rc` variable here is never set.  Fix a warning that is
emitted due to `-Wunused-variable`.

Signed-off-by: Jon Simons <jon@jonsimons.org>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Jon Simons
2018-06-08 17:32:27 -04:00
committed by Andreas Schneider
parent f827833d82
commit 7a2624dee4

View File

@@ -102,7 +102,6 @@ int ssh_packet_decrypt(ssh_session session,
size_t encrypted_size) size_t encrypted_size)
{ {
struct ssh_cipher_struct *crypto = session->current_crypto->in_cipher; struct ssh_cipher_struct *crypto = session->current_crypto->in_cipher;
int rc;
if (encrypted_size <= 0) { if (encrypted_size <= 0) {
return SSH_ERROR; return SSH_ERROR;