Bernhard Miklautz bdad9524dc refactor transport_read_pdu and check_fds
transport_check_fds and transport_read_pdu had almost the same
functionality: reading and validating one pdu at a time.

Now transport_read_pdu reads one pdu from the transport layer and verifies
that the pdu data is valid - as before.
transport_read_pdu also ensures that the stream is sealed and
rewound when the pdu is received completely.
transport_check_fds just uses transport_read_pdu and does *not* do
the verification a second time based on the stream.

Besides the clean up this fixes the following problems:

* transport_read always read 4 bytes. Fast-path input synchronize pdus
  are only 3 bytes long. In this case on byte got lost in the stream
	buffer which lead to "de-synchronization" of server and
	client.

* Size check in tpdu_read_connection_confirm - already read bytes
  weren't taken into account.
2014-07-24 16:34:59 +02:00
..
2014-02-10 22:23:59 -05:00
2014-01-23 22:23:47 -05:00
2014-05-09 22:37:47 +02:00
2014-05-28 23:07:00 +02:00
2014-05-09 22:37:47 +02:00
2014-01-23 22:23:47 -05:00
2014-01-23 22:23:47 -05:00
2014-02-10 22:12:13 -05:00
2014-02-10 22:12:13 -05:00
2014-01-23 22:23:47 -05:00
2014-01-23 22:23:47 -05:00
2014-07-24 16:34:59 +02:00
2014-04-10 21:10:19 +02:00
2014-02-12 00:43:02 -05:00
2014-05-29 10:12:02 +02:00
2014-06-03 14:54:56 +02:00
2013-11-08 13:57:41 -05:00
2014-07-24 16:34:59 +02:00
2014-05-29 10:12:02 +02:00