added lower case test for Little and Big endian indicators

This commit is contained in:
chombier 2002-03-24 16:04:19 +00:00
parent 5bee98b6d7
commit 282b9808c8
1 changed files with 2 additions and 0 deletions

View File

@ -234,11 +234,13 @@ do_client_channel_x11_receive(struct ssh_channel *s,
switch (self->buffer->data[0])
{
case 'B': /* Big endian */
case 'b': /* Big endian */
self->little_endian = 0;
self->name_length = READ_UINT16(self->buffer->data + 6);
self->auth_length = READ_UINT16(self->buffer->data + 8);
break;
case 'L': /* Little endian */
case 'l': /* Little endian */
self->little_endian = 1;
self->name_length = LE_READ_UINT16(self->buffer->data + 6);
self->auth_length = LE_READ_UINT16(self->buffer->data + 8);