Dewey and Wallace are small-town lawmen who are ordered by the governor to go undercover as prison inmates to find out where a gang of thieves have hidden their loot. While they're undercover, however, the governor dies, and because no one else knows about the ruse Dewey and Wallace are stranded in prison.
Richard Kiel, who stars in the film as the character "Duke," played an identical role in an episode of the 1980s TV series, "The Fall Guy," episode "That's Right, We're Bad."