mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-19 03:14:05 -05:00
TLS: Remove storing of never-read value
While this could in theory be claimed to be ready for something to be added to read a field following the server_write_IV, it does not look likely that such a use case would show up. As such, just remove the unused incrementing of pos at the end of the function to get rid of a useless static analyzer complaint. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
15a68138c1
commit
c6231b5e1e
@ -111,7 +111,6 @@ int tls_derive_keys(struct tlsv1_client *conn,
|
|||||||
pos += conn->rl.iv_size;
|
pos += conn->rl.iv_size;
|
||||||
/* server_write_IV */
|
/* server_write_IV */
|
||||||
os_memcpy(conn->rl.read_iv, pos, conn->rl.iv_size);
|
os_memcpy(conn->rl.read_iv, pos, conn->rl.iv_size);
|
||||||
pos += conn->rl.iv_size;
|
|
||||||
} else {
|
} else {
|
||||||
/*
|
/*
|
||||||
* Use IV field to set the mask value for TLS v1.1. A fixed
|
* Use IV field to set the mask value for TLS v1.1. A fixed
|
||||||
|
Loading…
Reference in New Issue
Block a user