On Fri, Feb 25, 2000 at 01:20:36PM +0100, Lutz Jaenicke wrote:

>       if (read(fd, buf, 1) != 1) goto err;
> +     if (buf[0] == 0) goto err;
>       num = read(fd, buf, 255);
> Of course, the returned buf[0] value must match the later returned "num" value,
> but what should we do if it does not match instead of using "num" anyway? :-)

Presumably reading should happen in O_NONBLOCK mode to make sure that
bugs such as an incompatible daemon at the Unix socket don't cause
problems?
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to