diff options
author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2019-08-03 12:50:29 +0200 |
---|---|---|
committer | Sander Vrijders <sander@ouroboros.rocks> | 2019-08-09 19:43:07 +0200 |
commit | 3339a629b41c50cca4232517b8249d55f462464d (patch) | |
tree | 3acfbaf91bf11deb1b10ff32b31332f593b17ea7 /src/ipcpd/eth/eth.c | |
parent | 9e8d603d14561095fb8d08871319a315d3bf6763 (diff) | |
download | ouroboros-3339a629b41c50cca4232517b8249d55f462464d.tar.gz ouroboros-3339a629b41c50cca4232517b8249d55f462464d.zip |
ipcpd: Fix length mismatch of encryption cypher
The cypher_s field in QoS was sometimes 32 and sometimes 16 bits. This
is now corrected to be 16 bits.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/ipcpd/eth/eth.c')
-rw-r--r-- | src/ipcpd/eth/eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipcpd/eth/eth.c b/src/ipcpd/eth/eth.c index dccfd190..a268b564 100644 --- a/src/ipcpd/eth/eth.c +++ b/src/ipcpd/eth/eth.c @@ -733,7 +733,7 @@ static int eth_ipcp_mgmt_frame(const uint8_t * buf, qs.ber = ntoh32(msg->ber); qs.in_order = msg->in_order; qs.max_gap = ntoh32(msg->max_gap); - qs.cypher_s = hton32(msg->cypher_s); + qs.cypher_s = ntoh16(msg->cypher_s); if (shim_data_reg_has(eth_data.shim_data, buf + sizeof(*msg))) { |