cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: ANNOUCE: curl 7.2

From: Albert Chin-A-Young <china_at_thewrittenword.com>
Date: Wed, 30 Aug 2000 10:55:01 -0500

On Wed, Aug 30, 2000 at 09:16:24AM -0400, Richard Chen wrote:
> Unfortunately it precisely breaks just the name resolving part on
> my redhat linux 6.2:
>
> $ src/curl http://www.yahoo.com/
> curl: (6) Couldn't resolv host 'www.yahoo.com'
>
> Installing 7.1.1 and earlier all worked flawlessly. I have
> just backed out to 7.1.1 again.

Try this patch. You'll need to regenerate configure.

-- 
albert chin (china_at_thewrittenword.com)
-- snip snip
--- configure.in.orig	Wed Aug 30 10:24:07 2000
+++ configure.in	Wed Aug 30 10:24:24 2000
@@ -240,10 +240,10 @@
 struct hostent h;
 struct hostent *hp;
 char *name = "localhost";
-char buf[10];
+char buf[8192];
 int rc;
 int h_errno;
-rc = gethostbyname_r(name, &h, buf, 10, &hp, &h_errno);
+rc = gethostbyname_r(name, &h, buf, 8192, &hp, &h_errno);
 exit (rc != 0 ? 1 : 0); }],[
 	    AC_MSG_RESULT(yes)
 	    AC_DEFINE(HAVE_GETHOSTBYNAME_R_6)
@@ -298,13 +298,13 @@
 int length;
 int type;
 struct hostent h;
-char buffer[10];
+char buffer[8192];
 int buflen;
 int h_errnop;
 struct hostent * hp;
 
 hp = gethostbyaddr_r(address, length, type, &h,
-                     buffer, buflen, &h_errnop);],[
+                     buffer, 8192, &h_errnop);],[
 	  AC_MSG_RESULT(yes)
 	  AC_DEFINE(HAVE_GETHOSTBYADDR_R_7)
 	  ac_cv_gethostbyaddr_args=7],[
@@ -317,14 +317,14 @@
 int length;
 int type;
 struct hostent h;
-char buffer[10];
+char buffer[8192];
 int buflen;
 int h_errnop;
 struct hostent * hp;
 int rc;
 
 rc = gethostbyaddr_r(address, length, type, &h,
-                     buffer, buflen, &hp, &h_errnop);],[
+                     buffer, 8192, &hp, &h_errnop);],[
 	    AC_MSG_RESULT(yes)
 	    AC_DEFINE(HAVE_GETHOSTBYADDR_R_8)
 	    ac_cv_gethostbyaddr_args=8],[
Received on 2000-08-30