diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2013-11-14 11:43:49 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2013-11-14 11:44:12 +0100 |
commit | fef32b4c147afa83cfe10072f961318d4dc91ebe (patch) | |
tree | 92523173689f3e6172bc314d775f267a5ce1c06f | |
parent | 2eaff2b3630fcac754abaa69cd1c33dbda67118b (diff) | |
download | libssh-fef32b4c147afa83cfe10072f961318d4dc91ebe.tar.gz libssh-fef32b4c147afa83cfe10072f961318d4dc91ebe.tar.xz libssh-fef32b4c147afa83cfe10072f961318d4dc91ebe.zip |
packet: Remove dead code.
-rw-r--r-- | src/packet.c | 6 |
1 files changed, 0 insertions, 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); |