IB 2299 then AZ 2404 at Madrid
Melilla → Madrid → Málaga
Timetable, Madrid time
15:30IB 2299 from Melilla at the gatealso VY 5699
15:00AZ 2404 to Málaga leaves the gatealso ME 4047, UX 5039, DL 6750, AD 6926, AM 6967, EY 7585, SK 8363, RO 9419
23 h 30 apart on the timetable, overnight
AZ 2404 leaves 23 h 30 after IB 2299 arrives on the timetable: more than half a day, so not a connection we count.