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
a8ae8087
Commit
a8ae8087
authored
17 years ago
by
Yang Tse
Browse files
Options
Downloads
Patches
Plain Diff
fix compiler warning
parent
502da27d
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/socks.c
+1
-1
1 addition, 1 deletion
lib/socks.c
src/main.c
+3
-1
3 additions, 1 deletion
src/main.c
with
4 additions
and
2 deletions
lib/socks.c
+
1
−
1
View file @
a8ae8087
...
...
@@ -392,7 +392,7 @@ CURLcode Curl_SOCKS5(const char *proxy_name,
long
timeout
;
bool
socks5_resolve_local
=
(
bool
)(
data
->
set
.
proxytype
==
CURLPROXY_SOCKS5
);
const
size_t
hostname_len
=
strlen
(
hostname
);
in
t
packetsize
=
0
;
ssize_
t
packetsize
=
0
;
/* RFC1928 chapter 5 specifies max 255 chars for domain name in packet */
if
(
!
socks5_resolve_local
&&
hostname_len
>
255
)
...
...
This diff is collapsed.
Click to expand it.
src/main.c
+
3
−
1
View file @
a8ae8087
...
...
@@ -1466,7 +1466,9 @@ static int sockoptcallback(void *clientp, curl_socket_t curlfd,
struct
Configurable
*
config
=
(
struct
Configurable
*
)
clientp
;
int
onoff
=
1
;
/* this callback is only used if we ask for keepalives on the
connection */
long
keepidle
=
config
->
alivetime
;
#if defined(TCP_KEEPIDLE) || defined(TCP_KEEPINTVL)
int
keepidle
=
(
int
)
config
->
alivetime
;
#endif
switch
(
purpose
)
{
case
CURLSOCKTYPE_IPCXN
:
...
...
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