diff options
author | Noriko Hosoi <nhosoi@redhat.com> | 2010-10-11 16:39:54 -0700 |
---|---|---|
committer | Noriko Hosoi <nhosoi@redhat.com> | 2010-10-11 16:39:54 -0700 |
commit | 310c056b2f39c534701b1ee1d1ec4755d4192f70 (patch) | |
tree | 26cf64210680bbeffe6ae221341271023c2ffa19 /lib/ldaputil/utest/example.c | |
parent | 6a1c2737ee49ba295ffae5a49265dcaa9debf09d (diff) | |
download | ds-310c056b2f39c534701b1ee1d1ec4755d4192f70.tar.gz ds-310c056b2f39c534701b1ee1d1ec4755d4192f70.tar.xz ds-310c056b2f39c534701b1ee1d1ec4755d4192f70.zip |
Bug 637852 - sasl_io_start_packet: failed - read only 3 bytes
of sasl packet length on connection 4
https://bugzilla.redhat.com/show_bug.cgi?id=637852
Description: A SASL packet is made from the 4 byte length and
the length size of payload. When the first 4 bytes were not
successfully received by one PR_Recv call, sasl_io_start_packet
in sasl_io.c considered an error occurred and set PR_IO_ERROR,
which terminates the SASL IO session.
To give clients a chance to send the rest of the length in the
next packet, this patch sets PR_WOULD_BLOCK_ERROR to the nspr
error code and EWOULDBLOCK/EAGAIN to errno and once the succeeding
packet comes in, it appends it to the previous incomplete length
data and continues the SASL IO.
Diffstat (limited to 'lib/ldaputil/utest/example.c')
0 files changed, 0 insertions, 0 deletions