DY 2002 then DY 1802 at Oslo
Riga → Oslo → Málaga
Timetable, Oslo time
15:40DY 2002 from Riga at the gate
14:45DY 1802 to Málaga leaves the gate
23 h 05 apart on the timetable, overnight
DY 1802 leaves 23 h 05 after DY 2002 arrives on the timetable: more than half a day, so not a connection we count.