In 2006, a delegation of military personnel -- which included the dean of West Point, as well as several high-level interrogation experts from the FBI and CIA -- visited the set of 24 in order to raise several concerns. Chief among these was that as a result of the show's popularity amongst military personnel, recruits increasingly believed that torturing people was a justifiable act if done in the service of their country -- so much so that a group of soldiers in Iraq had to be stopped from psychologically torturing a captured enemy combatant using a method that they'd seen on 24.
As the delegation also pointed out, torture is practically useless as a means of extracting information from the types of hardcore religious extremists the show continually rolled out, many of whom in real life would "almost welcome torture." This shouldn't be a surprise, but the show's writers didn't listen to the delegation, and used the opportunity to only talk about truth serums and hypothetical ticking-bomb scenarios ... as well as argue that actually, there's a super secret cheat code within the Constitution that makes torture legal. This is something that no serious legal scholars believe, although it's the sort of imaginative garbage that we'd expect from the minds that brought us an hour of Elisha Cuthbert being menaced by a cougar.