Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LARN
PRRT
Commits
5176d564
Commit
5176d564
authored
Oct 11, 2018
by
Kai Vogelgesang
Committed by
Andreas Schmidt
Oct 15, 2018
Browse files
Fix CodingConfig being created with invalid params
parent
80a68c16
Changes
1
Hide whitespace changes
Inline
Side-by-side
prrt/proto/processes/dataReceiver.c
View file @
5176d564
...
...
@@ -190,8 +190,9 @@ static void handle_redundancy_packet(PrrtSocket *socket, PrrtPacket *packet) {
PrrtBlock
*
block
=
PrrtRepairBlockStore_get_block
(
socket
->
repairBlockStore
,
redundancyPayload
->
baseSequenceNumber
);
if
(
block
==
NULL
)
{
uint8_t
n_cycle
[
1
]
=
{
redundancyPayload
->
n
-
redundancyPayload
->
k
};
PrrtCodingConfiguration
*
codingParams
=
PrrtCodingConfiguration_create
(
redundancyPayload
->
k
,
redundancyPayload
->
n
,
0
,
NULL
);
redundancyPayload
->
n
,
1
,
n_cycle
);
block
=
PrrtBlock_create
(
codingParams
,
PrrtSocket_get_matching_coder
(
socket
,
codingParams
),
redundancyPayload
->
baseSequenceNumber
);
...
...
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