mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
- Tru64 and some IRIX boxes seem to not like test 237 as it is. Their
inet_addr() functions seems to use &255 on all numericals in a ipv4 dotted address which makes a different failure... Now I've modified the ipv4 resolve code to use inet_pton() instead in an attempt to make these systems better detect this as a bad IP address rather than creating a toally bogus address that is then passed on and used.
This commit is contained in:
parent
bf87d13f5b
commit
61133545f6
13
CHANGES
13
CHANGES
@ -7,6 +7,19 @@
|
|||||||
Changelog
|
Changelog
|
||||||
|
|
||||||
|
|
||||||
|
Daniel (16 March 2005)
|
||||||
|
- Tru64 and some IRIX boxes seem to not like test 237 as it is. Their
|
||||||
|
inet_addr() functions seems to use &255 on all numericals in a ipv4 dotted
|
||||||
|
address which makes a different failure... Now I've modified the ipv4
|
||||||
|
resolve code to use inet_pton() instead in an attempt to make these systems
|
||||||
|
better detect this as a bad IP address rather than creating a toally bogus
|
||||||
|
address that is then passed on and used.
|
||||||
|
|
||||||
|
Daniel (15 March 2005)
|
||||||
|
- Added test 237 and 238: test EPSV and PASV response handling when they get
|
||||||
|
well- formated data back but using illegal values. In 237 PASV gets an IP
|
||||||
|
address that is way bad. In 238 EPSV gets a port that is way out of range.
|
||||||
|
|
||||||
Daniel (14 March 2005)
|
Daniel (14 March 2005)
|
||||||
- Added a few missing features to the curl-config --features list
|
- Added a few missing features to the curl-config --features list
|
||||||
|
|
||||||
|
@ -79,6 +79,7 @@
|
|||||||
#include "share.h"
|
#include "share.h"
|
||||||
#include "strerror.h"
|
#include "strerror.h"
|
||||||
#include "url.h"
|
#include "url.h"
|
||||||
|
#include "inet_pton.h"
|
||||||
|
|
||||||
#define _MPRINTF_REPLACE /* use our functions only */
|
#define _MPRINTF_REPLACE /* use our functions only */
|
||||||
#include <curl/mprintf.h>
|
#include <curl/mprintf.h>
|
||||||
@ -202,11 +203,9 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
|
|||||||
|
|
||||||
*waitp = 0; /* don't wait, we act synchronously */
|
*waitp = 0; /* don't wait, we act synchronously */
|
||||||
|
|
||||||
in=inet_addr(hostname);
|
if(1 == inet_pton(AF_INET, hostname, &in))
|
||||||
if (in != CURL_INADDR_NONE) {
|
|
||||||
/* This is a dotted IP address 123.123.123.123-style */
|
/* This is a dotted IP address 123.123.123.123-style */
|
||||||
return Curl_ip2addr(in, hostname, port);
|
return Curl_ip2addr(in, hostname, port);
|
||||||
}
|
|
||||||
|
|
||||||
#if defined(HAVE_GETHOSTBYNAME_R)
|
#if defined(HAVE_GETHOSTBYNAME_R)
|
||||||
/*
|
/*
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
#ifndef __INET_PTON_H
|
#ifndef __INET_PTON_H
|
||||||
#define __INET_PTON_H
|
#define __INET_PTON_H
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* _ _ ____ _
|
* _ _ ____ _
|
||||||
* Project ___| | | | _ \| |
|
* Project ___| | | | _ \| |
|
||||||
* / __| | | | |_) | |
|
* / __| | | | |_) | |
|
||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
@ -12,7 +12,7 @@
|
|||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
* are also available at http://curl.haxx.se/docs/copyright.html.
|
* are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
*
|
*
|
||||||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
* copies of the Software, and permit persons to whom the Software is
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
* furnished to do so, under the terms of the COPYING file.
|
* furnished to do so, under the terms of the COPYING file.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user