Avoiding a SIGSEGV if no El Torito is involved. Introduced by rev 1014.

This commit is contained in:
Thomas Schmitt 2012-06-20 20:40:15 +02:00
parent 2a08471c04
commit bbd198a81b
1 changed files with 3 additions and 0 deletions

View File

@ -1126,6 +1126,9 @@ int iso_patch_eltoritos(Ecma119Image *t)
IsoStream *new = NULL;
IsoStream *original = NULL;
if (t->catalog == NULL)
return ISO_SUCCESS;
for (idx = 0; idx < t->catalog->num_bootimages; idx++) {
if (!(t->catalog->bootimages[idx]->isolinux_options & 0x01))
continue;