This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] hesiod_end: Do not call res_nclose(&_res) [BZ #19573]


On Mon, 2 May 2016, Florian Weimer wrote:
> I wasn't aware of that, sorry.
> 
> I have looked at the patch again, and I think it is technically 
> incorrect. The proper way to fix this would be to install a resolver 
> callback which does nothing, and free the resolver state only if there 
> is *no* callback (because we know we own it).
> 
> But we only ever use the thread-local resolver state anyway, so I'm just 
> going to remove this code.

I will be happy to see the problem resolved however you see fit.

(If you think this code is incorrect, consider also fixing/deleting the 
code in __hesiod_res_set that it was copied from.)

Thanks,
Anders


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]