Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
d4f17854
Commit
d4f17854
authored
Oct 11, 2004
by
Andy Cedilnik
Browse files
COMP: Remove alignment warning
parent
1ed5888d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/CTest/Curl/url.c
View file @
d4f17854
...
...
@@ -1900,7 +1900,10 @@ static int handleSock5Proxy(const char *proxy_name,
}
}
*
((
unsigned
short
*
)
&
socksreq
[
8
])
=
htons
(
conn
->
remote_port
);
{
unsigned
short
s
=
htons
(
conn
->
remote_port
);
memcpy
(
socksreq
+
8
,
&
s
,
sizeof
(
unsigned
short
));
}
{
const
int
packetsize
=
10
;
...
...
@@ -1923,11 +1926,14 @@ static int handleSock5Proxy(const char *proxy_name,
return
1
;
}
if
(
socksreq
[
1
]
!=
0
)
{
/* Anything besides 0 is an error */
unsigned
short
sh
;
memcpy
(
&
sh
,
socksreq
+
8
,
sizeof
(
unsigned
short
));
failf
(
conn
->
data
,
"Can't complete SOCKS5 connection to %d.%d.%d.%d:%d. (%d)"
,
(
unsigned
char
)
socksreq
[
4
],
(
unsigned
char
)
socksreq
[
5
],
(
unsigned
char
)
socksreq
[
6
],
(
unsigned
char
)
socksreq
[
7
],
(
unsigned
int
)
ntohs
(
*
(
unsigned
short
*
)(
&
socksreq
[
8
])
),
(
unsigned
int
)
ntohs
(
sh
),
socksreq
[
1
]);
return
1
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment