hyc@OpenLDAP.org writes:
Modified Files: io.c 1.120 -> 1.121 ITS#5580 fix length decoding, verified with PROTOS
Keep the sock_errset() if returning LBER_DEFAULT and sblen < 0?
And maybe the variable used like i in the changed code must be ber_slen_t instead of int, I'm a bit too tired to check now. The remaining use of i as int looks OK.