lz: Avoid buffer reading overflow checking for image type
The type of the image is just copied from network without any check and later used for array indexing. Signed-off-by:Frediano Ziglio <fziglio@redhat.com> Acked-by:
Uri Lublin <uril@redhat.com>