summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/packet.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/packet.c b/src/packet.c
index 74972174..43a7de7c 100644
--- a/src/packet.c
+++ b/src/packet.c
@@ -326,9 +326,7 @@ int ssh_packet_socket_callback(const void *data, size_t receivedlen, void *user)
receivedlen-processed);
packet = ((uint8_t*)data) + processed;
- if (packet == NULL) {
- goto error;
- }
+
rc = ssh_packet_socket_callback(packet, receivedlen - processed,user);
processed += rc;
}