Skip to content

Commit

Permalink
tls: Fix copy-paste error in tls_device_reencrypt
Browse files Browse the repository at this point in the history
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: 4799ac8 ("tls: Add rx inline crypto offload")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Gustavo A. R. Silva authored and David S. Miller committed Jul 20, 2018
1 parent a3eed83 commit eecd685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/tls/tls_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ static int tls_device_reencrypt(struct sock *sk, struct sk_buff *skb)
TLS_CIPHER_AES_GCM_128_TAG_SIZE);

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

offset += copy;
buf += copy;
Expand Down

0 comments on commit eecd685

Please sign in to comment.