cURL / Mailing Lists / curl-users / Single Mail


Re: hostip alias bug?

From: Daniel Stenberg <>
Date: Tue, 20 May 2003 11:41:14 +0200 (CEST)

On Mon, 19 May 2003, Gisle Vanem wrote:

> I can't be 100% sure, but isn't the host-alias handling in lib/hostip.c a
> bit unsafe? I tried consulting the HP/UX man-pages, but it doesn't say what
> 'h_aliases' should be if there are no aliases (NULL or an array of NULLs).

Thanks for this, I can't see any reason why we shouldn't use this more
defensive approach. I'm committing this now...

 Daniel Stenberg -- curl: been grokking URLs since 1998
This email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software.
Received on 2003-05-20