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
emulab
emulab-devel
Commits
abc77681
Commit
abc77681
authored
Aug 29, 2008
by
Leigh B. Stoller
Browse files
In fullconfig, silently skip commands that are not allowed when ssl is
not in use.
parent
7d3a83a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
tmcd/tmcd.c
View file @
abc77681
...
...
@@ -5644,6 +5644,14 @@ COMMAND_PROTOTYPE(dofullconfig)
for
(
i
=
0
;
i
<
numcommands
;
i
++
)
{
if
(
command_array
[
i
].
fullconfig
&
mask
)
{
if
(
tcp
&&
!
isssl
&&
!
reqp
->
islocal
&&
(
command_array
[
i
].
flags
&
F_REMREQSSL
)
!=
0
)
{
/*
* Silently drop commands that are not
* allowed for remote non-ssl connections.
*/
continue
;
}
OUTPUT
(
buf
,
sizeof
(
buf
),
"*** %s
\n
"
,
command_array
[
i
].
cmdname
);
client_writeback
(
sock
,
buf
,
strlen
(
buf
),
tcp
);
...
...
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