]> git.ozlabs.org Git - petitboot/commit
lib/pb-protocol: Fix NULL dereference on non-powerpc
authorSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Mon, 21 Dec 2015 05:16:40 +0000 (16:16 +1100)
committerSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Mon, 21 Dec 2015 05:16:40 +0000 (16:16 +1100)
commitb3d51f6ec5d077e6a2068fde0631074a7302b1da
tree70051b0015702c4893670584c4a8d7ceb9c9929d
parentf155a58a64c660e46e74123293482561b816a39a
lib/pb-protocol: Fix NULL dereference on non-powerpc

If not running on a powerpc platform the bmc_mac pointer remains NULL.
If this is the case set an address of zero when serialising rather
than dereferencing the pointer.

Signed-off-by: Samuel Mendoza-Jonas <sam.mj@au1.ibm.com>
lib/pb-protocol/pb-protocol.c