summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/receive.c2
-rw-r--r--src/send.c2
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;
diff --git a/src/send.c b/src/send.c
index 5b6d0fe..2bfe80c 100644
--- a/src/send.c
+++ b/src/send.c
@@ -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;