diff options
author | Samuel Mendoza-Jonas <sam.mj@au1.ibm.com> | 2015-12-21 16:16:40 +1100 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam.mj@au1.ibm.com> | 2015-12-21 16:16:40 +1100 |
commit | b3d51f6ec5d077e6a2068fde0631074a7302b1da (patch) | |
tree | 70051b0015702c4893670584c4a8d7ceb9c9929d /test/parser/test-yaboot-root-override.c | |
parent | f155a58a64c660e46e74123293482561b816a39a (diff) | |
download | talos-petitboot-b3d51f6ec5d077e6a2068fde0631074a7302b1da.tar.gz talos-petitboot-b3d51f6ec5d077e6a2068fde0631074a7302b1da.zip |
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>
Diffstat (limited to 'test/parser/test-yaboot-root-override.c')
0 files changed, 0 insertions, 0 deletions