Skip to content
GitLab
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
03e82633
Commit
03e82633
authored
Oct 19, 1998
by
Niels Möller
Browse files
Allow only one service request.
Rev: src/service.c:1.3
parent
d535f9d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/service.c
View file @
03e82633
...
...
@@ -68,7 +68,11 @@ static int do_service(struct packet_handler *c,
?
LSH_FAIL
|
LSH_DIE
:
LSH_FAIL
|
LSH_CLOSE
);
}
return
A_WRITE
(
c
->
write
(
service_accept
(
name
)));
/* Don't accept any further service requests */
connection
->
dispatch
[
SSH_SERVICE_REQUEST
]
=
connection
->
fail
;
return
A_WRITE
(
c
->
write
(
format_service_accept
(
name
)));
}
return
LSH_FAIL
|
LSH_DIE
;
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment