FR 4641 then FR 6389 at Arlanda
Riga → Stockholm → Málaga
Timetable, Stockholm time
14:00FR 4641 from Riga at the gate
10:55FR 6389 to Málaga leaves the gate
20 h 55 apart on the timetable, overnight
FR 6389 leaves 20 h 55 after FR 4641 arrives on the timetable: more than half a day, so not a connection we count.