aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-08-11 18:08:50 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-08-11 18:08:50 +0000
commite7ce27a22c6785d70c9bc37eff4b58d3570cca41 (patch)
tree8d90a3bd521ed08e2653b6838eee2ed9a43e7512 /lib
parentad692ba1f3e8d98685a58b60501c1718a90a7011 (diff)
Linux name resolving problem fixed with larger name-buffer
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/url.c b/lib/url.c
index 561ab8202..dabf6e3c0 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -644,9 +644,11 @@ CURLcode curl_connect(CURL *curl, CURLconnect **in_connect)
struct UrlData *data = curl;
struct connectdata *conn;
- /* I believe the longest possible name in a DNS is set to 255 letters, FQDN
- so this should be safe: */
- char hostent_buf[512];
+ /* I believe the longest possible name in a DNS is set to 255 letters, FQDN.
+ Although the buffer required for storing all possible aliases and IP
+ numbers is according to Stevens' Unix Network Programming 2nd editor,
+ p. 304: 8192 bytes. Let's go with that! */
+ char hostent_buf[8192];
if(!data || (data->handle != STRUCT_OPEN))
return CURLE_BAD_FUNCTION_ARGUMENT; /* TBD: make error codes */