Mohamed Salah og Omar Marmoush bommet på Egypts to første straffespark, og Nigeria kunne til slutt juble for bronse i afrikamesterskapet.