The Longhorns survived a late touchdown drive and an onside kick recovery.