New error code ISO_BOOT_NO_CATALOG

This commit is contained in:
2010-06-23 19:54:51 +02:00
parent 281462802f
commit 1d6fdf51dc
3 changed files with 15 additions and 4 deletions

View File

@@ -653,6 +653,8 @@ int iso_image_add_boot_image(IsoImage *image, const char *image_path,
struct el_torito_boot_catalog *catalog = image->bootcat;
ElToritoBootImage *boot_img;
if(catalog == NULL)
return ISO_BOOT_NO_CATALOG;
if (catalog->num_bootimages >= Libisofs_max_boot_imageS)
return ISO_BOOT_IMAGE_OVERFLOW;
ret = create_image(image, image_path, type, &boot_img);