Re: [PATCH] Workaround for ai_canonname sometimes coming back as null
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Apr 29, 2009, 22:04 UTC
- Message-ID
- <81b0412b0904291504k3261df5fl692d09c6c761887e@mail.gmail.com>
- In-Reply-To
- <6B7EA51D-8412-4E6A-BA7B-156FD5B755E8@gmail.com>
2009/4/29 Augie Fackler <durin42@gmail.com>:
Show 5 quoted lines
>> >> This last line will crash some lines down, when canon_hostname is free'd: >> > > Odd, because I'm running with that exact code and not seeing the problem.
Pure luck (see the message regarding "the line above". The first was bogus, of course. It is in the other leg of #ifndef NO_IPV6). The "line above" will crash should you have more than one element in gai list.