qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] Proposed fix broken RST response to a slirp red


From: Edgar E. Iglesias
Subject: Re: [Qemu-devel] [PATCH] Proposed fix broken RST response to a slirp redirect socket
Date: Wed, 11 Jun 2008 22:29:37 +0200
User-agent: Mutt/1.5.16 (2007-06-09)

On Wed, Jun 11, 2008 at 03:10:35PM -0500, Jason Wessel wrote:
> +                     int err;
> +                     socklen_t slen;
> +
> +                     err = errno;
> 
> ---
> 
> Probably don't need to set err to errno since you are collecting it with 
> getsockopt

Please note that the errno value is used when nn < 0.

> 
> ---
> 
> +                     if (nn == 0)
> +                             getsockopt(so->s, SOL_SOCKET, SO_ERROR,
> +                                        &err, &slen);
> 
> ---
> 
> In theory you are supposed to set slen = sizeof(err);  prior to calling 
> getsockopt()

Thanks, I'll fix that up.
 
Best regards
-- 
Edgar E. Iglesias
Axis Communications AB




reply via email to

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