This updated patch is more consistent with how other branches of the function set canon.
I believe h->h_name should still be valid by the time canon is used at the end of the function, because it lives in tmpbuf just like it does in the gethostbyname4_r case.
Created attachment 6913
Candidate fix 2
This updated patch is more consistent with how other branches of the function set canon.
I believe h->h_name should still be valid by the time canon is used at the end of the function, because it lives in tmpbuf just like it does in the gethostbyname4_r case.