On Wed, Jul 18, 2012 at 12:07 AM, Alexander V. Lukyanov <[email protected]>wrote:
> On Tue, Jul 17, 2012 at 09:55:12AM -0500, Glenn Maynard wrote: > > That works too, but when is errno ever nonzero here? It appears to only > > ever be called immediately after calling gnutls_handshake, > > gnutls_record_recv or gnutls_record_send. > > I think that gnutls_* functions call read/write and those can set errno. > There are code paths in those calls that don't any system calls (leaving errno unchanged). If you want to check errno, you should at least set errno = 0 before the call to make sure it's cleared. I don't think gnutls means for errno to be examined after those calls, though. -- Glenn Maynard
_______________________________________________ lftp mailing list [email protected] http://univ.uniyar.ac.ru/mailman/listinfo/lftp
