[389-devel] Please review: [Bug 637852] sasl_io_start_packet: failed - read only 3 bytes of sasl packet length on connection 4

Noriko Hosoi nhosoi at redhat.com
Mon Oct 11 18:40:08 UTC 2010



https://bugzilla.redhat.com/show_bug.cgi?id=637852


https://bugzilla.redhat.com/attachment.cgi?id=452772&action=diff
https://bugzilla.redhat.com/attachment.cgi?id=452772&action=edit

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.

File:
  ldap/servers/slapd/sasl_io.c


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6646 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.fedoraproject.org/pipermail/389-devel/attachments/20101011/16917cfa/attachment.bin 


More information about the 389-devel mailing list