DRS: Should Haider Ali have been given out?

What happens when technology and the naked eye contradict each other, as was the case in the second ODI?