2 Samuel ch.18 - Mixed Messages

The Tanakh Podcast - A podcast by Alex Israel

In this chapter David instructs Yoav not to kill Avshalom, where Yoav instructs the army to kill Avshalom. Who was correct?