UX 5434 then FR 9602 at Madrid
Málaga → Madrid → Rome
Timetable, Madrid time
15:40UX 5434 from Málaga at the gatealso AD 6917
14:15FR 9602 to Rome leaves the gate
22 h 35 apart on the timetable, overnight
FR 9602 leaves 22 h 35 after UX 5434 arrives on the timetable: more than half a day, so not a connection we count.