]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
IPv6: Avoid uninitialized ifp state when adding address (#395)
authorKen Simon <ken@kensimon.io>
Tue, 29 Oct 2024 23:11:54 +0000 (19:11 -0400)
committerGitHub <noreply@github.com>
Tue, 29 Oct 2024 23:11:54 +0000 (23:11 +0000)
commite354743c4a6a5924a114bddc203aaf6b4f7e081a
treeac6ec4aa849dbab7206dcf006f80f613a625a797
parent550c2bb5da56bd5a3c7f4073365a8a65ac6dc54c
IPv6: Avoid uninitialized ifp state when adding address (#395)

In certain instances, `ifp->if_data[IF_DATA_IPV6]` was not yet
initialized when ipv6_addaddr adds the address to the state, and a
segfault would ensue. Mitigate this by ensuring the state is initialized
when adding the addresses.

fixes #394
src/ipv6.c