summaryrefslogtreecommitdiff
path: root/lib/if2ip.h
diff options
context:
space:
mode:
authortmilburn <thomas2@instantsolve.net>2019-03-07 20:23:54 +0000
committerDaniel Stenberg <daniel@haxx.se>2019-04-13 11:18:55 +0200
commitc3e38a4250d5f21a9189c3fdbbe45fbb71242184 (patch)
treed63321693aeacf22bd24847ceef8d08785f6dfec /lib/if2ip.h
parentd715d2ac89abc0fc98ccb220c7f7cc148e747144 (diff)
downloadcurl-c3e38a4250d5f21a9189c3fdbbe45fbb71242184.tar.gz
CURLOPT_ADDRESS_SCOPE: fix range check and more
Commit 9081014 fixed most of the confusing issues between scope id and scope however 844896d added bad limits checking assuming that the scope is being set and not the scope id. I have fixed the documentation so it all refers to scope ids. In addition Curl_if2ip refered to the scope id as remote_scope_id which is incorrect, so I renamed it to local_scope_id. Adjusted-by: Daniel Stenberg Closes #3655 Closes #3765 Fixes #3713
Diffstat (limited to 'lib/if2ip.h')
-rw-r--r--lib/if2ip.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/if2ip.h b/lib/if2ip.h
index a11b1c222..f193d4257 100644
--- a/lib/if2ip.h
+++ b/lib/if2ip.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -39,7 +39,7 @@ typedef enum {
} if2ip_result_t;
if2ip_result_t Curl_if2ip(int af, unsigned int remote_scope,
- unsigned int remote_scope_id, const char *interf,
+ unsigned int local_scope_id, const char *interf,
char *buf, int buf_size);
#ifdef __INTERIX