From bbd198a81b8a437ec893e1790d6d04a478f5385b Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Wed, 20 Jun 2012 20:40:15 +0200 Subject: [PATCH] Avoiding a SIGSEGV if no El Torito is involved. Introduced by rev 1014. --- libisofs/eltorito.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libisofs/eltorito.c b/libisofs/eltorito.c index 7d55a4f..1cbdd05 100644 --- a/libisofs/eltorito.c +++ b/libisofs/eltorito.c @@ -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;