FR 591 then FR 9066 at Vienna
Málaga → Vienna → Bari
Timetable, Vienna time
13:20FR 591 from Málaga at the gate
07:05FR 9066 to Bari leaves the gate
17 h 45 apart on the timetable, overnight
FR 9066 leaves 17 h 45 after FR 591 arrives on the timetable: more than half a day, so not a connection we count.