1
1

remove superfluous check for large packets

as we're already doing the correct check further down anyway there's no point
in doing the (wrong) check further up as well. Paul Veldkamp pointed this out.
Этот коммит содержится в:
Daniel Stenberg 2009-07-27 22:54:18 +02:00
родитель 690c3d42db
Коммит 6f4463e81f

Просмотреть файл

@ -431,7 +431,7 @@ _libssh2_transport_read(LIBSSH2_SESSION * session)
* and we can extract packet and padding length from it
*/
p->packet_length = _libssh2_ntohu32(block);
if ((p->packet_length < 1) || (p->packet_length > PACKETBUFSIZE))
if (p->packet_length < 1)
return PACKET_FAIL;
p->padding_length = block[4];