]> git.baikalelectronics.ru Git - kernel.git/commit
ip_tunnel: Fix name string concatenate in __ip_tunnel_create()
authorSultan Alsawaf <sultanxda@gmail.com>
Wed, 6 Jun 2018 22:56:54 +0000 (15:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Jun 2018 20:27:16 +0000 (16:27 -0400)
commitbe83b2d71385ca542a02cc1e87cea640347b3d03
tree4814bfa5cffd70ee44e9b34d56a9d0759d47484c
parent4b15c0332ca9ff2accc2884a79f0e4539b99144b
ip_tunnel: Fix name string concatenate in __ip_tunnel_create()

By passing a limit of 2 bytes to strncat, strncat is limited to writing
fewer bytes than what it's supposed to append to the name here.

Since the bounds are checked on the line above this, just remove the string
bounds checks entirely since they're unneeded.

Signed-off-by: Sultan Alsawaf <sultanxda@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_tunnel.c