Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matt Johnston
dropbear
Commits
38f42a0f
Commit
38f42a0f
authored
Apr 15, 2013
by
Matt Johnston
Browse files
Fix error message for requirenext change
parent
b4cdfcb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
process-packet.c
View file @
38f42a0f
...
@@ -77,8 +77,8 @@ void process_packet() {
...
@@ -77,8 +77,8 @@ void process_packet() {
if
(
ses
.
requirenext
[
0
]
!=
0
)
{
if
(
ses
.
requirenext
[
0
]
!=
0
)
{
if
(
ses
.
requirenext
[
0
]
!=
type
if
(
ses
.
requirenext
[
0
]
!=
type
&&
(
ses
.
requirenext
[
1
]
==
0
||
ses
.
requirenext
[
1
]
!=
type
))
{
&&
(
ses
.
requirenext
[
1
]
==
0
||
ses
.
requirenext
[
1
]
!=
type
))
{
dropbear_exit
(
"Unexpected packet type %d, expected %d"
,
type
,
dropbear_exit
(
"Unexpected packet type %d, expected
[
%d
,%d]
"
,
type
,
ses
.
requirenext
);
ses
.
requirenext
[
0
],
ses
.
requirenext
[
1
]
);
}
else
{
}
else
{
/* Got what we expected */
/* Got what we expected */
ses
.
requirenext
[
0
]
=
0
;
ses
.
requirenext
[
0
]
=
0
;
...
...
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