FR 6792 then IB 797 at Madrid
Marrakesh → Madrid → Vienna
Timetable, Madrid time
22:05FR 6792 from Marrakesh at the gate
19:55IB 797 to Vienna leaves the gate
21 h 50 apart on the timetable, overnight
IB 797 leaves 21 h 50 after FR 6792 arrives on the timetable: more than half a day, so not a connection we count.