[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 04/09: CONNECT_TO: fail attempt to set an IPv6 nume
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 04/09: CONNECT_TO: fail attempt to set an IPv6 numerical without IPv6 support |
Date: |
Sat, 27 Jan 2018 15:14:33 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit eb6e3c4f6e312e79732311b84df20a660f18dbdd
Author: Daniel Stenberg <address@hidden>
AuthorDate: Mon Jan 22 15:28:13 2018 +0100
CONNECT_TO: fail attempt to set an IPv6 numerical without IPv6 support
Bug: https://curl.haxx.se/mail/lib-2018-01/0087.html
Reported-by: John Hascall
Closes #2257
---
lib/url.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/lib/url.c b/lib/url.c
index d45da5e72..74813e874 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2017, Daniel Stenberg, <address@hidden>, et al.
+ * Copyright (C) 1998 - 2018, Daniel Stenberg, <address@hidden>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -3612,6 +3612,7 @@ static CURLcode parse_connect_to_host_port(struct
Curl_easy *data,
/* detect and extract RFC6874-style IPv6-addresses */
if(*hostptr == '[') {
+#ifdef ENABLE_IPV6
char *ptr = ++hostptr; /* advance beyond the initial bracket */
while(*ptr && (ISXDIGIT(*ptr) || (*ptr == ':') || (*ptr == '.')))
ptr++;
@@ -3635,6 +3636,11 @@ static CURLcode parse_connect_to_host_port(struct
Curl_easy *data,
* hostptr first, but I can't see anything wrong with that as no host
* name nor a numeric can legally start with a bracket.
*/
+#else
+ failf(data, "Use of IPv6 in *_CONNECT_TO without IPv6 support built-in!");
+ free(host_dup);
+ return CURLE_NOT_BUILT_IN;
+#endif
}
/* Get port number off server.com:1080 */
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] branch master updated (cc5f34a99 -> 60bd2bed8), gnunet, 2018/01/27
- [GNUnet-SVN] [gnurl] 04/09: CONNECT_TO: fail attempt to set an IPv6 numerical without IPv6 support,
gnunet <=
- [GNUnet-SVN] [gnurl] 01/09: curl: progress bar refresh, get width using ioctl(), gnunet, 2018/01/27
- [GNUnet-SVN] [gnurl] 02/09: http: prevent custom Authorization headers in redirects, gnunet, 2018/01/27
- [GNUnet-SVN] [gnurl] 06/09: progress-bar: get screen width on windows, gnunet, 2018/01/27
- [GNUnet-SVN] [gnurl] 03/09: docs: fix man page syntax to make test 1140 OK again, gnunet, 2018/01/27
- [GNUnet-SVN] [gnurl] 05/09: test1454: --connect-to with IPv6 address w/o IPv6 support!, gnunet, 2018/01/27
- [GNUnet-SVN] [gnurl] 08/09: Merge tag 'curl-7_58_0' of https://github.com/curl/curl, gnunet, 2018/01/27
- [GNUnet-SVN] [gnurl] 09/09: gnURL: rename guix-gnurl to guix, gnunet, 2018/01/27
- [GNUnet-SVN] [gnurl] 07/09: RELEASE: 7.58.0, gnunet, 2018/01/27