IB 564 then EC 1704 at Madrid
Málaga → Madrid → Nice
Timetable, Madrid time
14:35IB 564 from Málaga at the gatealso CX 1863, AY 4816, QR 6912, AA 8595
13:10EC 1704 to Nice leaves the gate
22 h 35 apart on the timetable, overnight
EC 1704 leaves 22 h 35 after IB 564 arrives on the timetable: more than half a day, so not a connection we count.