From fef32b4c147afa83cfe10072f961318d4dc91ebe Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 14 Nov 2013 11:43:49 +0100 Subject: [PATCH] packet: Remove dead code. --- src/packet.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/packet.c b/src/packet.c index c6c30bdb..74972174 100644 --- a/src/packet.c +++ b/src/packet.c @@ -231,9 +231,6 @@ int ssh_packet_socket_callback(const void *data, size_t receivedlen, void *user) } packet = ((uint8_t*)data) + processed; - if (packet == NULL) { - goto error; - } #if 0 ssh_socket_read(session->socket, packet, @@ -264,9 +261,6 @@ int ssh_packet_socket_callback(const void *data, size_t receivedlen, void *user) /* copy the last part from the incoming buffer */ packet = ((uint8_t *)data) + processed; - if (packet == NULL) { - goto error; - } memcpy(mac, packet, MACSIZE); rc = packet_hmac_verify(session, session->in_buffer, mac);