OSDN Git Service

dp-message: fix efidp_ipv4_addr fields assignment pie-x86 q-x86 r-x86 android-x86-9.0-r1 android-x86-9.0-r2
authorJavier Martinez Canillas <javierm@redhat.com>
Tue, 5 Mar 2019 16:23:36 +0000 (17:23 +0100)
committerPeter Jones <pjones@redhat.com>
Tue, 5 Mar 2019 18:14:47 +0000 (13:14 -0500)
commit836461e480e2249de134efeaef79588cab045d5c
treedf3f892cafd3631adefab8b17d4005b7a2a12c4b
parent4e04afc2df9bbc26e5ab524b53a6f4f1e61d7c9e
dp-message: fix efidp_ipv4_addr fields assignment

The efidp_ipv4_addr structure has some 4-byte array fields to store IPv4
addresses and network mask. But the efidp_make_ipv4() function wrongly
casts these as a char * before dereferencing them to store a value.

Instead, cast it to a uint32_t * so the 32-bit value is correctly stored.

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
src/dp-message.c