gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gnutls-dev] [PATCH] bug in lib/gnutls_buffers.c


From: Nikos Mavroyanopoulos
Subject: Re: [gnutls-dev] [PATCH] bug in lib/gnutls_buffers.c
Date: Tue May 27 23:36:01 2003
User-agent: Mutt/1.5.4i

On Tue, May 27, 2003 at 09:19:33PM +0300, Sergey Poznyakoff wrote:

> Hello,
> The buffering mechanism in gnutls_buffers.c does not work when
> the user-defined pull function is used. Here's the short
> synopsis:
> The comment to _gnutls_io_clear_peeked_data() states that `this
> function is only used with berkeley style sockets.', however no
> provision is made to ensure this is so. This causes the function
> to be called even if the pull function is used. Now, what happens
> is that calling _gnutls_io_clear_peeked_data() after
> _gnutls_read(..., MSG_PEEK) blocks the program, since it actually
> attempts to read the same data twice.
> Attached is the patch that corrects the bug.

Thank you for the report and the patch. Does the attached patch
also solve the problem?

> Regards,
> Sergey

-- 
Nikos Mavroyanopoulos

Attachment: diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]