From: Howard Chu Date: Thu, 6 May 2004 23:58:13 +0000 (+0000) Subject: Fix for ITS#1181 from Mark Adamson @ CMU.edu X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~402 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e5d1b3134c257d4e93d1fa81c845c14e351e18aa;p=openldap Fix for ITS#1181 from Mark Adamson @ CMU.edu --- diff --git a/libraries/libldap/cyrus.c b/libraries/libldap/cyrus.c index f80a4c33c5..cb4a25c94b 100644 --- a/libraries/libldap/cyrus.c +++ b/libraries/libldap/cyrus.c @@ -264,7 +264,8 @@ sb_sasl_read( Sockbuf_IO_Desc *sbiod, void *buf, ber_len_t len) /* Read the length of the packet */ while ( p->sec_buf_in.buf_ptr < 4 ) { - ret = LBER_SBIOD_READ_NEXT( sbiod, p->sec_buf_in.buf_base, + ret = LBER_SBIOD_READ_NEXT( sbiod, p->sec_buf_in.buf_base + + p->sec_buf_in.buf_ptr, 4 - p->sec_buf_in.buf_ptr ); #ifdef EINTR if ( ( ret < 0 ) && ( errno == EINTR ) )