]> git.sur5r.net Git - openldap/commitdiff
Fix for ITS#1181 from Mark Adamson @ CMU.edu
authorHoward Chu <hyc@openldap.org>
Thu, 6 May 2004 23:58:13 +0000 (23:58 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 6 May 2004 23:58:13 +0000 (23:58 +0000)
libraries/libldap/cyrus.c

index f80a4c33c591bc4a520ef69ca5920df9b64a9f6c..cb4a25c94bd44a3befc86090abcbab4e92db570f 100644 (file)
@@ -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 ) )