]> git.ipfire.org Git - people/ms/strongswan.git/commit
libipsec: Fix compiler warning with GCC 9
authorTobias Brunner <tobias@strongswan.org>
Wed, 28 Aug 2019 07:53:19 +0000 (09:53 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 28 Aug 2019 09:10:49 +0000 (11:10 +0200)
commit8cd5f33dd88b9e40a4fe37b539ecf4fae563c759
treef7dc334c02d4307ee5ca70892acd24173ebc3d25
parentd6949b15abcce576d412b89c68bf7d7ae37addd6
libipsec: Fix compiler warning with GCC 9

The compiler complains that "taking address of packed member ... of
class or structure 'ip6_hdr' may result in an unaligned pointer value".
We don't care if the address is aligned as we explicitly use untoh16()
to convert the read value.
src/libipsec/ip_packet.c