Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eecd6857 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by David S. Miller
Browse files

tls: Fix copy-paste error in tls_device_reencrypt



It seems that the proper structure to use in this particular
case is *skb_iter* instead of skb.

Addresses-Coverity-ID: 1471906 ("Copy-paste error")
Fixes: 4799ac81 ("tls: Add rx inline crypto offload")
Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a3eed83a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -615,7 +615,7 @@ static int tls_device_reencrypt(struct sock *sk, struct sk_buff *skb)
			     TLS_CIPHER_AES_GCM_128_TAG_SIZE);
			     TLS_CIPHER_AES_GCM_128_TAG_SIZE);


		if (skb_iter->decrypted)
		if (skb_iter->decrypted)
			skb_store_bits(skb, offset, buf, copy);
			skb_store_bits(skb_iter, offset, buf, copy);


		offset += copy;
		offset += copy;
		buf += copy;
		buf += copy;