At a time when alleged government leaks to the press are at the forefront, Bill O'Reilly asked Pulitzer prize-winning reporter Judith Miller about how far a journalist should go to release information the government does not want published.

In 2005, Miller spent 85 days in jail after she refused to divulge whether she had sources with information on the Valerie Plame affair.

O'Reilly: Getting a Traditional Judge Like Gorsuch on SCOTUS Is 'Vital'

Mom Demands Answers After Illegal Immigrant Rape Incident at MD School

Wealthy New Yorkers Ask Gov. Cuomo to Raise Their Taxes

Miller told O'Reilly she never wrote about Plame, then a CIA agent whose name was illegally leaked.

She was sentenced to jail time for what she called contempt of the process, in which she refused to sit before a grand jury that was empaneled during a related investigation of former Cheney aide I. Lewis "Scooter" Libby.

Miller said that regardless of who leaked Gen. Michael Flynn's name to the press, it was a case involving someone who was a national security adviser to a presidential campaign, rather than an apolitical citizen.

O'Reilly said that, hypothetically, someone could have gotten hurt or killed because of a leak like that: "You can't just take illegal stuff and throw it out there," he said.

"I think the greater danger is that we use national security laws to shut down information and our [journalism] business," Miller said.

Journalists' job is to present information to the American people that the government doesn't want them to know, she said.

Watch the interview above.

Krauthammer: Gorsuch Hearing 'An Exercise in Obfuscation'

WATCH: Al Franken Presses Gorsuch on 'Frozen Trucker Case'

'Nuclear Option' Looms Over Gorsuch Confirmation Hearing