]> git.ipfire.org Git - thirdparty/strongswan.git/commit - src/libcharon/plugins/dhcp/dhcp_socket.c
dhcp: Don't use signed char for DHCP options
authorTobias Brunner <tobias@strongswan.org>
Thu, 14 Sep 2017 17:11:10 +0000 (19:11 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 18 Sep 2017 10:16:54 +0000 (12:16 +0200)
commit787cc3a4e59726e68765dbeb6a3f282c7b00f463
treed769737783387e81a6a25b456e783f240a064dd4
parentd04deff4dfd9ef496d19a17742fa3baa25d83544
dhcp: Don't use signed char for DHCP options

The value of DHCP_OPTEND is 255.  When it is assigned this result in a
sign change as the positive int constant is cast to a signed char and -1
results. Clang 4.0 complains about this.
src/libcharon/plugins/dhcp/dhcp_socket.c