On 17/09/13 10:13, Otto Moerbeek wrote:
On Tue, Sep 17, 2013 at 12:25:17AM -0400, Ted Unangst wrote:

I think this will give unexpected results if ipv6 resolvers are
configured. You'll notice the asr code is allocating possibly varying
amounts of memory. I think you're going to want to memcpy the correct
length.

        memcpy(&_res.nsaddr_list[i], ac->ac_ns[i], ac->ac_ns[i]->sa_len);
That's looks better indeed.

        -Otto

Yes and of course it works.

G

Reply via email to