FR 591 then FR 9151 at Vienna
Málaga → Vienna → Madrid
Timetable, Vienna time
22:00FR 591 from Málaga at the gate
18:10FR 9151 to Madrid leaves the gate
20 h 10 apart on the timetable, overnight
FR 9151 leaves 20 h 10 after FR 591 arrives on the timetable: more than half a day, so not a connection we count.