Madrid will now face either Bayer Leverkusen or Atlético Madrid in the next round, with the draw set for 21 February.