cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Fwd: [PATCH] check ip callback

From: Alexey Pesternikov <paster_at_page2rss.com>
Date: Tue, 2 Oct 2007 14:10:25 -0700

>
> But does the size of the buffer really need to be this complex?
>
> > char addr_storage[sizeof(struct Curl_sockaddr)-sizeof(struct
> > sockaddr)+sizeof(struct Curl_sockaddr_storage)];
>
> When is a plain sizeof(struct Curl_sockaddr_storage) not enough?
>
Curl_sockaddr_storage, which is basically sockaddr_storage has a space for a
largest possible struct sockaddr only. We should add some space for the
other fields we are using.

-- 
Alexey,
http://page2rss.com     RSS feed from almost any page
Received on 2007-10-02