aboutsummaryrefslogtreecommitdiff
path: root/libssh/packet.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-04-28 19:36:39 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-04-28 19:36:39 +0200
commit7d32ec5d28ecdf72f69d14794fd2fc98003b3fdd (patch)
tree8e8d37cffd037c8609cc08ce69d3c45aa0f965cd /libssh/packet.c
parent20e7ec96ae01d4367a7fbcd87bdbf0fa6496492b (diff)
downloadlibssh-7d32ec5d28ecdf72f69d14794fd2fc98003b3fdd.tar.gz
libssh-7d32ec5d28ecdf72f69d14794fd2fc98003b3fdd.tar.xz
libssh-7d32ec5d28ecdf72f69d14794fd2fc98003b3fdd.zip
Fix warnings found with clang analyzer
Diffstat (limited to 'libssh/packet.c')
-rw-r--r--libssh/packet.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libssh/packet.c b/libssh/packet.c
index ad10b496..f0f7b919 100644
--- a/libssh/packet.c
+++ b/libssh/packet.c
@@ -126,7 +126,7 @@ int ssh_packet_socket_callback(const void *data, size_t receivedlen, void *user)
char buffer[16] = {0};
void *packet=NULL;
int to_be_read;
- int rc = SSH_ERROR;
+ int rc;
uint32_t len;
uint8_t padding;
size_t processed=0; /* number of byte processed from the callback */
@@ -187,7 +187,6 @@ int ssh_packet_socket_callback(const void *data, size_t receivedlen, void *user)
/* give up, not enough data in buffer */
return processed;
}
- rc = SSH_ERROR;
packet = (unsigned char *)data + processed;
// ssh_socket_read(session->socket,packet,to_be_read-current_macsize);