Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
2297bc47
Commit
2297bc47
authored
24 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
changed the 'port' field to long to better work with the va_arg() system
parent
34a2d446
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/url.c
+1
-3
1 addition, 3 deletions
lib/url.c
lib/urldata.h
+3
-3
3 additions, 3 deletions
lib/urldata.h
with
4 additions
and
6 deletions
lib/url.c
+
1
−
3
View file @
2297bc47
...
...
@@ -446,9 +446,7 @@ CURLcode curl_setopt(CURL *curl, CURLoption option, ...)
data
->
url
=
va_arg
(
param
,
char
*
);
break
;
case
CURLOPT_PORT
:
/* this typecast is used to fool the compiler to NOT warn for a
"cast from pointer to integer of different size" */
data
->
port
=
(
unsigned
short
)(
va_arg
(
param
,
long
));
data
->
port
=
va_arg
(
param
,
long
);
break
;
case
CURLOPT_POSTFIELDS
:
data
->
postfields
=
va_arg
(
param
,
char
*
);
...
...
This diff is collapsed.
Click to expand it.
lib/urldata.h
+
3
−
3
View file @
2297bc47
...
...
@@ -331,7 +331,7 @@ struct ssldata {
bool
use
;
/* use ssl encrypted communications TRUE/FALSE */
long
version
;
/* what version the client wants to use */
long
certverifyresult
;
/* result from the certificate verification */
bool
verifypeer
;
/* set TRUE if this is desired */
long
verifypeer
;
/* set TRUE if this is desired */
char
*
CApath
;
/* DOES NOT WORK ON WINDOWS */
char
*
CAfile
;
/* cerficate to verify peer against */
#ifdef USE_SSLEAY
...
...
@@ -401,8 +401,8 @@ struct UrlData {
char
*
url
;
/* what to get */
char
*
freethis
;
/* if non-NULL, an allocated string for the URL */
char
*
hostname
;
/* hostname to connect, as parsed from url */
unsigned
short
port
;
/* which port to use (if non-protocol bind) set
CONF_PORT to use this */
long
port
;
/* which port to use (if non-protocol bind) set
CONF_PORT to use this */
unsigned
short
remote_port
;
/* what remote port to connect to, not the proxy
port! */
struct
Configbits
bits
;
/* new-style (v7) flag data */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment