]> git.ipfire.org Git - thirdparty/openvpn.git/commit
route.c: pass the right parameter to IN6_IS_ADDR_UNSPECIFIED
authorAntonio Quartulli <a@unstable.cc>
Thu, 26 Aug 2021 06:17:25 +0000 (08:17 +0200)
committerGert Doering <gert@greenie.muc.de>
Sat, 28 Aug 2021 13:37:29 +0000 (15:37 +0200)
commit477781335cbca1aec69a372cbc18bf086155eea1
treebb15c24eee973367b8b9ecf94f2f056d54ec1a63
parent96083a9150edd90a6641477d123324cf0885853e
route.c: pass the right parameter to IN6_IS_ADDR_UNSPECIFIED

IN6_IS_ADDR_UNSPECIFIED on most systems is defined as a macro that
expects a struct in6_addr* argument.

In one instance we are passing the right address but using a wrong type.
Fix this invocation by properly passing the right pointer.

This issue might become more critical on systems implementing
IN6_IS_ADDR_UNSPECIFIED as a function rather than a macro.

Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by:
Message-Id: <20210826061725.22169-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22767.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit aa0e44e235f7bee0e12707b6899d00bad85195fc)
src/openvpn/route.c