diff options
-rw-r--r-- | src/receive.c | 2 | ||||
-rw-r--r-- | src/send.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/receive.c b/src/receive.c index e5ce217..5f5e276 100644 --- a/src/receive.c +++ b/src/receive.c @@ -249,7 +249,7 @@ static inline bool skb_decrypt(struct sk_buff *skb, struct noise_symmetric_key *key, simd_context_t simd_context) { - struct scatterlist sg[MAX_SKB_FRAGS * 2 + 1]; + struct scatterlist sg[MAX_SKB_FRAGS + 8]; struct sk_buff *trailer; unsigned int offset; int num_frags; @@ -161,7 +161,7 @@ static inline bool skb_encrypt(struct sk_buff *skb, simd_context_t simd_context) { unsigned int padding_len, plaintext_len, trailer_len; - struct scatterlist sg[MAX_SKB_FRAGS * 2 + 1]; + struct scatterlist sg[MAX_SKB_FRAGS + 8]; struct message_data *header; struct sk_buff *trailer; int num_frags; |