]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: consider option-length when parsing NIS domain
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 23 Apr 2024 07:09:44 +0000 (09:09 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 3 May 2024 18:22:58 +0000 (12:22 -0600)
commite69b187486e3b8124af966d2f20c55c8605ea1ae
treebcf37f566e90fe71cd6a196047e6494936afa18a
parent914b766a2a6b0f746b2e6fe3bf3d70881e6da610
net: consider option-length when parsing NIS domain

When parsing option 40 (network information service domain) the
option length is in variable 'oplen' and not in 'size'.

Addresses-Coverity-ID: 492765 Uninitialized variables (UNINIT)
Fixes: 8ab388bfdbcf ("net: add support to parse the NIS domain for the dhcp options")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
net/bootp.c