]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
Remove buffer overrun that leads to a segfault on ipv6 network.
authorRoy Marples <roy@marples.name>
Fri, 23 Mar 2012 07:38:39 +0000 (07:38 +0000)
committerRoy Marples <roy@marples.name>
Fri, 23 Mar 2012 07:38:39 +0000 (07:38 +0000)
commit65436fea3da4d3b8ad765b01495cdbb54d7cc456
tree438ad673b7aef0216f134875963c834a3432ea0f
parentba0bc18bcbaaa4de645143fd8e809a07dda34306
Remove buffer overrun that leads to a segfault on ipv6 network.

strcpy copies the \0 of its src argument, therefore the following line
is unneeded. Ironically, it can lead to a nasty segfault on a network
that supports ipv6. In fact, it prevented me from access such a
network using DHCP.

Signed-off-by: Sidney Amani <seed95@gmail.com>
ipv6rs.c