CNN legal analyst Jeffrey Toobin raised eyebrows on Tuesday when he compared the partner of Glenn Greenwald to a "drug mule."

The detention of David Miranda at London's Heathrow airport under a controversial section of a British anti-terrorism law has caused a political scandal in the UK. Miranda was held for nine hours, and his electronic equipment was confiscated. Lawyers for Miranda signaled on Tuesday that he would be taking legal action against the British government.

Toobin—who has been harshly critical of Greenwald and NSA leaker Edward Snowden—appeared on Anderson Cooper's show just after Miranda himself, along with Greenwald, spoke about his experience.

Miranda said he didn't know what was on the files that were confiscated. "I was just taking materials back to Glenn," he said.

Greenwald declined to say what Miranda was carrying, but added, "Every single newsroom in the United States...has classified information...so if you want to support the idea that states can just go and confiscate from journalists classified information, you should be demanding that your government go physically into newsrooms and seize whatever classified information is there."

Asked if he thought the British were right to detain Miranda, Toobin said, "I sure do."

"I don't want to be unkind, but he was a mule," he said. "He was given something, he didn't know what it was, from one person to pass to another at the other end of an airport. Our prisons are full of drug mules."

"They knew who he was, they knew he wasn't connected to some terrorist group," Cooper pointed out.

"If terrorists know how we surveil their cell phone call, how we surveil their texts, that could be useful to terrorists," Toobin said.

"But couldn't any information published by journalists be used by journalists in some way, and can't that excuse be used to detain journalists?" Cooper asked.

"It would have to be classified information of this kind," Toobin said. He later added that "the word journalism is not magical immunity sauce that you can put on anything and eliminate any sort of liability."

Jesselyn Radack, a former whistleblower who works for the Government Accountability Project, defended Miranda against Toobin's assertions, calling them "vacuous."

"No matter what was on [Miranda's files], it obviously had to do with journalism," she said. "David was serving as an in-between, not as a drug mule."

"If the British government thought there were stolen documents that were being transported, why don't they have the right to stop this person and check?" Cooper asked.

"The British government, if it thought they had stolen documents, could go through the criminal process rather than using an anti-terrorism law," Radack said.

"He wasn't sent to the gulag," Toobin said.

"I hope the next time Mr. Toobin is stopped for nine hours and detained with no due process on an anti-terrorism law that he is equally as generous with his assessment," Radack replied.

Greenwald responded to Toobin's comments on Twitter:

Reporter Kevin Gosztola also took aim at Toobin, by quoting from a book by author Michael Isikoff which said that Toobin had "absconded with large loads of classified and grand-jury related documents from the office of Iran-Contra independent counsel Lawrence Walsh" in the late 1980s.

UPDATE: In an interview with The Huffington Post, Toobin called Gosztola's blog post "completely wrong." He said that, upon leaving his post at the Office of Independent Counsel, he had presented every document he intended to take with him to his superiors, and had received approval. He added that, when he wrote a book about his time in government, the CIA had reviewed it and had not made him change it.

"I didn't steal any information," he said. "I played by the rules. I followed the law."

He also said that anyone surprised by his enthusiastic defense of the NSA against Snowden had misjudged him.

"I am not an advocate of a party line, I hope, on any issue," he said. "I'm not a liberal pundit. I'm not a conservative pundit. I'm a journalist."

Also on HuffPost:

Loading Slideshow...
  • Cooper Family Portrait

    LONG ISLAND, NY - CIRCA 1969: Socialite and heiress Gloria Vanderbilt poses for a portrait session with her sons Anderson Cooper (left) and Carter Vanderbilt Cooper in their home in circa 1969 in Southampton, Long Island, New York. (Photo by Jack Robinson/Hulton Archive/Getty Images)

  • Cooper Family Portrait

    LONG ISLAND, NY - CIRCA 1969: Socialite and heiress Gloria Vanderbilt poses for a portrait session with her sons Anderson Cooper and Carter Vanderbilt Cooper (left) in their home in circa 1969 in Southampton, Long Island, New York. (Photo by Jack Robinson/Hulton Archive/Getty Images)

  • Cooper Family Portrait

    LONG ISLAND, NY - CIRCA 1969: Socialite and heiress Gloria Vanderbilt poses for a portrait session with her sons Anderson Cooper and Carter Vanderbilt Cooper (right) in their home in circa 1969 in Southampton, Long Island, New York. (Photo by Jack Robinson/Hulton Archive/Getty Images)

  • Storytime At The Cooper-Vanderbilt's

    American heiress and socialite Gloria Vanderbilt reads to her two sons, Carter (1965 - 1988) and Anderson, on a bed in their home, Southampton, Long Island, New York, 1972. The children wear matching pajamas and hold stuffed animals. (Photo by Jack Robinson/Hulton Archive/Getty Images)

  • Gallery Event at Museum of Modern Art

    Carter Cooper, Anderson Cooper and Gloria Vanderbilt (Photo by Ron Galella/WireImage)

  • Gallery Event at Museum of Modern Art - January 1, 1972

    Carter Cooper, Anderson Cooper and Gloria Vanderbilt (Photo by Ron Galella/WireImage)

  • Cooper-Vanderbilts

    Family portrait of the Coopers as they play on a sofa in their home, Southampton, Long Island, New York, March 30, 1972. American author and actor Wyatt Emory Cooper and heiress Gloria Vanderbilt Cooper sit with their sons, Carter (1965 - 1988) and Anderson Cooper. (Photo by Jack Robinson/Hulton Archive/Getty Images)

  • Cooper Family Portrait

    LONG ISLAND, NY - MARCH 30: (L-R) Actor and authro Wyatt Emory Cooper, Carter Vanderbilt Cooper, heiress and socialite Gloria Vanderbilt and Anderson Cooper pose for a family portrait as they play on a sofa in their home on March 30, 1972 in Southampton, Long Island, New York. (Photo by Jack Robinson/Hulton Archive/Getty Images)

  • Cooper Family Portrait

    LONG ISLAND, NY - MARCH 30: (L-R) Author and actor Wyatt Emory Cooper, Carter Vanderbilt Cooper, heiress and socialite Gloria Vanderbilt and Anderson Cooper pose for a family portrait as they play on a sofa in their home on March 30, 1972 in Southampton, Long Island, New York. (Photo by Jack Robinson/Hulton Archive/Getty Images)

  • Cooper Family Portrait

    LONG ISLAND, NY - MARCH 30: (L-R) American author and actor Wyatt Emory Cooper, Carter Vanderbilt Cooper, heiress and socialite Gloria Vanderbilt and Anderson Cooper pose for a family portrait as they play on a sofa in their home on March 30, 1972 in Southampton, Long Island, New York. (Photo by Jack Robinson/Hulton Archive/Getty Images)

  • Gloria Vanderbilt And Her Sons

    Swiss-born socialite Gloria Vanderbilt poses with her two sons Anderson Cooper and Carter Vanderbilt Cooper (1965 - 1988) on her bed in their apartment in the UN Towers, New York, New York, March 1976. (Photo by Susan Wood/Getty Images)

  • Gloria Vanderbilt And Sons Run In New York

    Swiss-born socialite Gloria Vanderbilt runs down the street with her two sons Anderson Cooper and Carter Vanderbilt Cooper (1965 - 1988), New York, New York. (Photo by Susan Wood/Getty Images)

  • Gloria Vanderbilt And Sons

    L to R: Sons Anderson Cooper and Carter Vanderbilt Cooper (1965 - 1988) lean in to listen to their mother, Swiss-born socialite Gloria Vanderbilt, while attending her fashion show in New York, 1979. (Photo by Rose Hartman/Getty Images)

  • Ron Galella Archive - File Photos

    Anderson Cooper, Carter Cooper and designer Gloria Vanderbilt attending 'Woody Allen New Year's Eve Party' on December 31, 1979 at Harkness House in New York City, New York.

  • 2001 ABC Upfront Party

    Anderson Cooper (Photo by Jim Spellman/WireImage)

  • Celebs Attend NYC Play Opening

    395652 03: Actor Anderson Cooper attends the opening night of the play 'The Shape of Things' October 10, 2001 at The Promenade Theatre in New York. (Photo by George De Sota/Getty Images)

  • Opening Night of "The Boys From Syracuse" - August 18, 2002

    Anderson Cooper during Opening Night of 'The Boys From Syracuse' at American Airlines Theater in New York City, New York, United States. (Photo by Ron Galella, Ltd./WireImage)

  • HRTS Newsmakers Luncheon Explores Reality Television Shows

    BEVERLY HILLS, CA - JANUARY 16: Moderator Anderson Cooper, a CNN correspondent (L), speaks at the Hollywood Radio and Television Society's Newsmakers Luncheon at the Regent Beverly Wilshire on January 16, 2003 in Beverly Hills, California. The event featured a panel discussion by producers and stars of reality television shows. Also pictured is R.J. Cutler (R), the producer/director of 'American Candidate.' (Photo by Vince Bucci/Getty Images)

  • Nautica - Fall 2004 - Front Row

    NEW YORK - FEBRUARY 6: CNN's 360 host Anderson Cooper attends the Nautica fashion show during Olympus Fashion Week at Bryant Park February 6, 2004 in New York City. (Photo by Peter Kramer/Getty Images for Olympus Fashion Week)

  • 2004 Vanity Fair Oscar Party - Arrivals

    Anderson Cooper (Photo by Theo Wargo/WireImage)

  • Dior Homme Concert and Party In New York

    NEW YORK - MARCH 10: CNN's Anderson Cooper attends the Dior Homme Concert and Party in honor of the Dior Homme Store Opening on March 10th, New York City. (Photo By Mark Mainz/Getty Images)

  • 2004 Republican National Convention - Day 4 - Inside

    Anderson Cooper and Sean 'P. Diddy' Combs (Photo by Carley Margolis/FilmMagic)

  • Tiffany's "Silver Jewelry" Party

    Anderson Cooper and Gloria Vanderbilt during Tiffany's 'Silver Jewelry' Party at Tiffany Store in New York, New York, United States. (Photo by Rabbani and Solimene Photography/WireImage)

  • 2005 Vanity Fair Oscar Party - Arrivals

    Barry Diller, Diane von Fürstenberg, and Anderson Cooper (Photo by George Pimentel/WireImage)

  • Time Magazine's 100 Most Influential People Celebration - Arrivals

    Anderson Cooper and Jon Stewart (Photo by Dimitrios Kambouris/WireImage for Rubenstein Communications, Inc.)

  • Jerry Seinfeld and Jessica Seinfeld Host Dinner for Ed Broth, Author of Stories from a Moron

    Anderson Cooper, Jann Wenner and Jerry Seinfeld during Jerry Seinfeld and Jessica Seinfeld Host Dinner for Ed Broth, Author of Stories from a Moron at Cafe Gray in New York City, New York, United States. (Photo by KMazur/WireImage for Seinfeld)

  • CNN correspondent Anderson Cooper jumps out of the back of a

    UNITED STATES - JULY 05: CNN correspondent Anderson Cooper jumps out of the back of a red convertible Mustang driven by InterActiveCorp Chairman Barry Diller as they arrive at the annual Allen and Company Media and Technology Conference Tuesday, July 5, 2005 in Sun Valley, Idaho. (Photo by Matthew Staver/Bloomberg via Getty Images)

  • The First Annual Comedy Festival Honors Jerry Seinfeld

    LAS VEGAS - NOVEMBER 19: (US TABS AND HOLLYWOOD REPORTER OUT) CNN's Anderson Cooper serves as moderator for a panel discussion during the first annual The Comedy Festival at Caesars Palace November 19, 2005 in Las Vegas, Nevada. (Photo by Ethan Miller/Getty Images)

  • 2006 Vanity Fair Oscar Party Hosted by Graydon Carter

    Anderson Cooper (Photo by Eric Charbonneau/WireImage for Vanity Fair Magazine )

  • Time Magazine's 100 Most Influential People

    NEW YORK - MAY 08: Reporter Anderson Cooper attends the celebration for Time Magazine's 100 Most Infuential People issue at Jazz at Lincoln Center May 8, 2006 in New York City. (Photo by Brad Barket/Getty Images)

  • The 27th Annual News and Documentary Emmy Awards - Winner Portraits

    Anderson Cooper (Photo by Marc Bryan-Brown/WireImage)

  • Mercedes- Benz Fashion Week Fall 2007 - Diane Von Furstenberg - Departures

    Anderson Cooper (Photo by Jean Baptiste Lacroix/WireImage)

  • 2007 Vanity Fair Oscar Party Hosted by Graydon Carter - Inside

    Anderson Cooper and Daniel Craig during 2007 Vanity Fair Oscar Party Hosted by Graydon Carter - Inside at Mortons in West Hollywood, California, United States. (Photo by E. Charbonneau/WireImage for Vanity Fair Magazine)

  • Screening Of "Planet In Peril"

    NEW YORK - OCTOBER 19: Journalist Anderson Cooper arrives to the CMJ Film Festival screening of 'Planet In Peril' at the IFC Theatre in New York City on October 19, 2007. (Photo by Michael Loccisano/FilmMagic)

  • Republican Presidential Candidates Debate

    SIMI VALLEY, CA - JANUARY 30: Former first lady Nancy Reagan (L) talks with CNN reporter Anderson Cooper before the start of the CNN/LA Times/Politico GOP Presidential Candidates? Republican Debate at the Ronald Reagan Presidential Library January 30, 2008 in Simi Valley, California. The Republican presidential hopefuls are debating with one week to go until the California Primaries on February 5. (Photo by Justin Sullivan/Getty Images)

  • 6th Annual Sesame Workshop Benefit Gala

    NEW YORK - MAY 28: Anderson Cooper and Grover attend the 6th Annual Sesame Workshop Benefit Gala at Cipriani 42nd Street on May 28, 2008 in New York City. (Photo by Jason Kempin/WireImage)

  • The Elton John AIDS Foundation's 7th Annual Benefit "An Enduring Vision"

    NEW YORK - NOVEMBER 11: TV journalist Anderson Cooper attends 'An Enduring Vision' the 7th Annual Elton John Aids Foundation Benefit at Cipriani Wall Street on November 11, 2008 in New York City. (Photo by Neilson Barnard/Getty Images)

  • 8th Annual Elton John AIDS Foundation�s "An Enduring Vision" - Inside

    NEW YORK - NOVEMBER 16: EXCLUSIVE COVERAGE (L-R) David Furnish, actress Sharon Stone, Sir Elton John and journalist Anderson Cooper attend the 8th Annual Elton John AIDS Foundation�s 'An Enduring Vision' benefit at Cipriani, Wall Street on November 16, 2009 in New York City. (Photo by Larry Busacca/WireImage)

  • The Tonight Show with Conan O'Brien

    THE TONIGHT SHOW WITH CONAN O'BRIEN -- Episode 108 -- Air Date 11/19/2009 -- Pictured: (l-r) Anderson Cooper during an interview with host Conan O'Brien on November 19, 2009 (Photo by Paul Drinkwater/NBC/NBCU Photo Bank via Getty Images)

  • Healthy Heart Seminar And Charity Fundraiser For Sheila Kar Health Foundati

    Anderson Cooper (L) and Larry King attend charity fundraiser for Sheila Kar Health Foundation at The Beverly Hilton hotel on February 14, 2010 in Beverly Hills, California.

  • Museum Of The Moving Image Honors Katie Couric

    NEW YORK - MAY 05: Journalist Anderson Cooper attends the Museum of the Moving Image Honoring Katie Couric at the St. Regis Hotel on May 5, 2010 in New York City. (Photo by Ben Hider/Getty Images)

  • The Huffington Post 2010 "Game Changers" Event Hosted By Arianna Huffington - Inside

    Anderson Cooper honors Sean Penn during the Huffington Post 2010 'Game Changers' event hosted by Arianna Huffington at Skylight Studio on October 28, 2010 in New York, City.

  • 2011 New Year's Eve In Times Square

    NEW YORK, NY - DECEMBER 31: Anderson Cooper celebrates New Year's Eve 2011 in Times Square on December 31, 2010 in New York City. (Photo by Astrid Stawiarz/Getty Images)

  • 2011 Vanity Fair Oscar Party Hosted By Graydon Carter - Arrivals

    WEST HOLLYWOOD, CA - FEBRUARY 27: Journalist Anderson Cooper arrives at the Vanity Fair Oscar party hosted by Graydon Carter held at Sunset Tower on February 27, 2011 in West Hollywood, California. (Photo by Michael Buckner/WireImage)

  • Anderson Cooper Visits Elvis Duran And The Z100 Morning Show

    NEW YORK, NY - AUGUST 19: (EXCLUSIVE COVERAGE) Anderson Cooper (C) visits Elvis Duran and Z100 morning show team at the Z100 Studios on August 19, 2011 in New York City. (Photo by Neilson Barnard/Getty Images for the Z100 Morning Show)

  • Anderson Cooper Unveils His Wax Figure At Madame Tussauds

    NEW YORK, NY - SEPTEMBER 14: Journalist Anderson Cooper unveils his wax figure at Madame Tussauds on September 14, 2011 in New York City. (Photo by Charles Eshelman/WireImage)

  • BuzzFoto Celebrity Sightings In New York - September 27, 2011

    NEW YORK CITY, NY - SEPTEMBER 27: Anderson Cooper seen in the Meatpacking District on September 27, 2011 in New York City, New York. (Photo by Josiah Kamau/BuzzFoto/FilmMagic)

  • Anderson Cooper Tapes Segment For Talk Show "Anderson" At Boston Market

    NEW YORK, NY - OCTOBER 12: Anderson Cooper tapes a segment for his talk show 'Anderson' at Boston Market on October 12, 2011 in New York City. (Photo by Neilson Barnard/Getty Images for Anderson)

  • Watch What Happens Live

    WATCH WHAT HAPPENS LIVE -- Pictured: (l-r) Camille Grammer, Anderson Cooper -- Photo by: Peter Kramer/Bravo/NBCU Photo Bank

  • Diane Von Furstenberg - Front Row & Backstage - Fall 2012 Mercedes-Benz Fashion Week

    NEW YORK, NY - FEBRUARY 12: Anderson Cooper, Diane Von Furstenberg and Andy Cohen attend the Diane Von Furstenberg Fall 2012 fashion show during Mercedes-Benz Fashion Week at the The Theatre at Lincoln Center on February 12, 2012 in New York City. (Photo by Eugene Gologursky/WireImage)

  • Jeopardy! Power Players Week

    WASHINGTON, DC - APRIL 21: Anderson Cooper, Kelly O'Donnell and Thomas L. Friedman speak during a rehearsal before a taping of Jeopardy! Power Players Week at DAR Constitution Hall on April 21, 2012 in Washington, DC. (Photo by Kris Connor/Getty Images)