FR 5485 then UX 5431 at Madrid
Porto → Madrid → Málaga
Timetable, Madrid time
22:45FR 5485 from Porto at the gate
21:45UX 5431 to Málaga leaves the gatealso AD 6916
23 h apart on the timetable, overnight
UX 5431 leaves 23 h after FR 5485 arrives on the timetable: more than half a day, so not a connection we count.