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
d44acd58
Commit
d44acd58
authored
Apr 20, 2003
by
Niels Möller
Browse files
(handshake_command): Allow a NULL lv->peer.
Rev: src/handshake.c:1.17
parent
690a422b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/handshake.c
View file @
d44acd58
...
@@ -332,13 +332,16 @@ DEFINE_COMMAND4(handshake_command)
...
@@ -332,13 +332,16 @@ DEFINE_COMMAND4(handshake_command)
{
{
CAST
(
handshake_info
,
info
,
a1
);
CAST
(
handshake_info
,
info
,
a1
);
CAST_SUBTYPE
(
make_kexinit
,
init
,
a2
);
CAST_SUBTYPE
(
make_kexinit
,
init
,
a2
);
/* NOTE: For lsh, the lv from connect is mostly bogus, lv->peer is
* NULL */
CAST
(
listen_value
,
lv
,
a4
);
CAST
(
listen_value
,
lv
,
a4
);
struct
lsh_string
*
version
;
struct
lsh_string
*
version
;
struct
ssh_connection
*
connection
;
struct
ssh_connection
*
connection
;
int
mode
=
info
->
flags
&
CONNECTION_MODE
;
int
mode
=
info
->
flags
&
CONNECTION_MODE
;
verbose
(
"Initiating handshake with %S
\n
"
,
lv
->
peer
->
ip
);
if
(
lv
->
peer
)
verbose
(
"Initiating handshake with %S
\n
"
,
lv
->
peer
->
ip
);
switch
(
mode
)
switch
(
mode
)
{
{
...
...
Write
Preview
Markdown
is supported
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