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
LSH
lsh
Commits
f88efb18
Commit
f88efb18
authored
Feb 29, 2004
by
Niels Möller
Browse files
(do_read_socks): Fixed bugs in parsing of client's
first message. Rev: src/socks.c:1.3
parent
2d4d380d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/socks.c
View file @
f88efb18
...
...
@@ -352,11 +352,6 @@ do_read_socks(struct read_handler **h,
werror
(
"Socks connection of unknown version %i.
\n
"
,
p
[
0
]);
socks_fail
(
self
->
socks
);
}
else
if
(
p
[
1
]
!=
0
)
{
werror
(
"Socks protocol error.
\n
"
);
socks_fail
(
self
->
socks
);
}
else
{
self
->
socks
->
version
=
p
[
0
];
...
...
@@ -369,7 +364,7 @@ do_read_socks(struct read_handler **h,
case
SOCKS_VERSION_METHODS
:
/* We support only method 0 */
if
(
memc
mp
(
p
+
2
,
SOCKS_NOAUTH
,
p
[
1
]))
if
(
memc
hr
(
p
+
2
,
SOCKS_NOAUTH
,
p
[
1
]))
{
socks_method
(
self
->
socks
,
SOCKS_NOAUTH
);
...
...
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