cURL / Mailing Lists / curl-users / Single Mail


hostip alias bug?

From: Gisle Vanem <>
Date: Mon, 19 May 2003 19:12:56 +0200 (MET DST)

I can't be 100% sure, but isn't the host-alias handling
in lib/hostip.c buggy? 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).

cURL references 'h_aliases[i]', but in my case 'h_aliases'
is NULL which causes a crash. Why not be a bit conservative

I'm on a shell-account now (running djgpp/telnet), so no
details. But it's around line 380 where it's counting the

Gisle V.

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