diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-11-06 03:32:52 +0900 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-11-06 03:32:52 +0900 |
commit | 1af543f44c79696abdd422a3e28458f8deb11375 (patch) | |
tree | d9c177503878db60c443e09c116ffec81ca2253c /lib/ippool.c | |
parent | bd228244da492df768f6c8d2a0032846f1dde4fa (diff) |
tun: Don't copy 16byte IPv6 address to 'struct in_addr'
The 'struct tun' curently only has an in_addr (v4-only) member to
store the address of the tun device, so let's not attempt to store
an IPv6 address in it.
FIXME: This entire code needs an overhaul. The assumption that there's
only one address, and only either v6 or v4 is broken to begin with.
Change-Id: If0b626d688841d6e0a3867834f4cb1b70084050e
Fixes: Coverity CID#174278
Diffstat (limited to 'lib/ippool.c')
0 files changed, 0 insertions, 0 deletions