IB 2297 then IB 797 at Madrid
Melilla → Madrid → Vienna
Timetable, Madrid time
20:55IB 2297 from Melilla at the gatealso QR 5377, VY 5697
19:55IB 797 to Vienna leaves the gate
23 h apart on the timetable, overnight
IB 797 leaves 23 h after IB 2297 arrives on the timetable: more than half a day, so not a connection we count.