[peerdist] Avoid NULL pointer dereference for plaintext blocks
authorMichael Brown <mcb30@ipxe.org>
Tue, 29 Sep 2015 00:24:36 +0000 (01:24 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 29 Sep 2015 00:24:36 +0000 (01:24 +0100)
commit0a4805bf943be5b573b0560ecfcc88ff9999fd95
tree69029e0e23b4e0cd9626c6ee8f0c52c49e48eb7f
parentf3fbb5ff1c2d573067ba9b3ff245c689822dbdca
[peerdist] Avoid NULL pointer dereference for plaintext blocks

Avoid accidentally dereferencing a NULL cipher context pointer for
plaintext blocks (which are usually messages with a block length of
zero, indicating a missing block).

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/peerblk.c