~connman-maintainers/connman/head

Viewing all changes in revision 8016.

  • Committer: Daniel Wagner
  • Date: 2020-10-12 07:04:25 UTC
  • Revision ID: git-v1:ce767870be2272108e01bd7452651250c5e2cdd5
wireguard: Fix struct sockaddr usage

wg_dns_reresolve_cb() tries to read 16 bytes from the addr variable in
case of IPv6 but struct sockaddr has size of 8 bytes. Introduce a
helper struct containing IPv4 and IPv6 sockaddr as superset of all IP
based sockaddr.

This helper struct is identically to the 'union endpoint' in
wireguard.h. But we don't want to touch this header file as it is 100%
copy from the upstream WireGuard project.

Fixes: 90592f7a5835 ("wireguard: Regular reresolve endpoint address")

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: