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
fdeaae67
Commit
fdeaae67
authored
23 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
SM's patch applied, we should not use arguments or variables that have the
same name as common functions...
parent
f30102f0
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/connect.c
+9
-7
9 additions, 7 deletions
lib/connect.c
lib/connect.h
+2
-2
2 additions, 2 deletions
lib/connect.h
with
11 additions
and
9 deletions
lib/connect.c
+
9
−
7
View file @
fdeaae67
...
...
@@ -308,8 +308,9 @@ static CURLcode bindlocal(struct connectdata *conn,
return
CURLE_HTTP_PORT_FAILED
;
}
#e
ndif
/* end of ipv4-specific section */
#e
lse
/* end of ipv4-specific section */
/* we only use socketerror() on IPv6-enabled machines */
static
int
socketerror
(
int
sockfd
)
{
...
...
@@ -322,6 +323,7 @@ int socketerror(int sockfd)
return
err
;
}
#endif
/*
* TCP connect to the given host with timeout, proxy or remote doesn't matter.
...
...
@@ -331,9 +333,9 @@ int socketerror(int sockfd)
CURLcode
Curl_connecthost
(
struct
connectdata
*
conn
,
/* context */
Curl_addrinfo
*
remotehost
,
/* use one in here */
int
port
,
/* connect to this */
int
*
sock
et
,
/* the connected socket */
Curl_ipconnect
**
addr
)
/* the one we used */
int
port
,
/* connect to this */
int
*
sock
conn
,
/* the connected socket */
Curl_ipconnect
**
addr
)
/* the one we used */
{
struct
SessionHandle
*
data
=
conn
->
data
;
int
rc
;
...
...
@@ -531,7 +533,7 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */
if
(
-
1
==
rc
)
{
/* no good connect was made */
sclose
(
sockfd
);
*
sock
et
=
-
1
;
*
sock
conn
=
-
1
;
return
CURLE_COULDNT_CONNECT
;
}
...
...
@@ -544,8 +546,8 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */
#endif
/* allow NULL-pointers to get passed in */
if
(
sock
et
)
*
sock
et
=
sockfd
;
/* the socket descriptor we've connected */
if
(
sock
conn
)
*
sock
conn
=
sockfd
;
/* the socket descriptor we've connected */
return
CURLE_OK
;
}
...
...
This diff is collapsed.
Click to expand it.
lib/connect.h
+
2
−
2
View file @
fdeaae67
...
...
@@ -25,8 +25,8 @@
CURLcode
Curl_connecthost
(
struct
connectdata
*
conn
,
Curl_addrinfo
*
host
,
/* connect to this */
long
port
,
/* connect to this port number */
int
*
sock
et
,
/* not set if error is returned */
long
port
,
/* connect to this port number */
int
*
sock
conn
,
/* not set if error is returned */
Curl_ipconnect
**
addr
/* the one we used */
);
/* index we used */
#endif
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