FR 591 then FR 689 at Vienna
Málaga → Vienna → Madrid
Timetable, Vienna time
13:35FR 591 from Málaga at the gate
06:00FR 689 to Madrid leaves the gate
16 h 25 apart on the timetable, overnight
FR 689 leaves 16 h 25 after FR 591 arrives on the timetable: more than half a day, so not a connection we count.