diff options
author | Sabrina Dubroca <sd@queasysnail.net> | 2023-10-09 23:50:43 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-10-13 13:26:09 +0300 |
commit | 6d5029e54700b2427581513c533232b02ce05043 (patch) | |
tree | 6bbec467aea8449f61117d8b973b3a11ed62dee9 /include/net/tls.h | |
parent | 8f1d532b4a49e196696b0aa150962d7ce96985e4 (diff) | |
download | linux-6d5029e54700b2427581513c533232b02ce05043.tar.xz |
tls: store rec_seq directly within cipher_context
TLS_MAX_REC_SEQ_SIZE is 8B, we don't get anything by using kmalloc.
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tls.h')
-rw-r--r-- | include/net/tls.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/tls.h b/include/net/tls.h index a2b44578dcb7..f3f22b08af26 100644 --- a/include/net/tls.h +++ b/include/net/tls.h @@ -194,7 +194,7 @@ enum tls_context_flags { struct cipher_context { char *iv; - char *rec_seq; + char rec_seq[TLS_MAX_REC_SEQ_SIZE]; }; union tls_crypto_context { |