MadagascarÂ caused a surprise with a 2-1 win over visitorsÂ UgandaÂ in a 2015 Africa Cup of Nations first round, first-leg tie on Sunday in their quest to play Ghana in group phase.
The winners of the tie will play in the second round of qualifiers before they are in Group E where they will play Ghana, Guinea and Togo.
Ghana, Guinea and Togo were given byes to group stage and will be joined by one of Madagascar, Uganda, Mauritania or Equatorial Guinea in Group E.
Madagascar took the lead after just nines minutes with a penalty from Faneva Andriatsima before Carolus Andriamahitsinoro doubled the lead midway through the first half.
Madagascar had the chance to extend their advantage but they failed to score from the penalty spot in the second-half.
Hamis Kiiza then scored what could prove to be a vital away goal with a spot-kick in the very last moments of the match.
Uganda are traditionally strong at home and will believe they can overturn the deficit in the second leg in Kampala in two weeks time.
The Cranes are ranked more than 100 places above Madagascar on the Fifa rankings.
The second-leg of the tie will be played in two weeks' time.