]> git.baikalelectronics.ru Git - uboot.git/commit
net: ipv6: Fixed IPv6 string to address conversion off-by-one error
authorEhsan Mohandesi <emohandesi@microsoft.com>
Fri, 13 Jan 2023 17:27:41 +0000 (09:27 -0800)
committerTom Rini <trini@konsulko.com>
Thu, 2 Feb 2023 19:44:53 +0000 (14:44 -0500)
commitf9130b75422faa7ac6217dcd7b3048ebc90db2ec
tree591c0be13f7533905c68d715cdeed0d9d0a2536a
parent8ef2e5fde9595662a6544640787ac8f9b2ac7783
net: ipv6: Fixed IPv6 string to address conversion off-by-one error

One extra character was being checked in the IPv6 string which caused the
last character of the address to be neither '\0' nor ':'. This raises an
error condition and causes the function to always return an error. This
issue was resolved by this fix.

Signed-off-by: Ehsan Mohandesi <emohandesi@microsoft.com>
Reviewed-by: Viacheslav Mitrofanov <v.v.mitrofanov@yadro.com>
net/tftp.c