Commit 5176d564 authored by Kai Vogelgesang's avatar Kai Vogelgesang Committed by Andreas Schmidt

Fix CodingConfig being created with invalid params

parent 80a68c16
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment