Mark Andrew Foley was caught with nearly £9,000 worth of heroin and crack cocaine when officers targeted his home in Dib Lane, Roundhay, on September 12.
A packet of cling film containing heroin was found between his buttocks during a strip search, prosecutor Matthew Moore-Taylor told Leeds Crown Court.
Foley’s house in Dib Lane was searched.
A search of his home uncovered more drugs, with police estimating a street value of between £4,467 and £8,935.
They also found brass knuckles in the living room and a tick list for customers.
Foley has 13 convictions for 61 felonies, including two for trafficking Class A drugs in the 1990s.
Most recently, he was sentenced to six years in prison for burglary in 2018, for which he served half of the sentence.
He admitted to two counts of possession with intent to supply Class A drugs.
Mitigatingly, Robin Frieze admitted his client had a “horrible record” and said his life had been “tainted by drugs”.
He said he was drug free when he was released from prison, but the death of his mother caused him to return to drugs and he began selling to support his own addiction.
Recorder Andrew Haslam KC jailed him for three years and nine months, saying: “They have a bad record for libel. You know from your own addiction how these drugs affect others.
“It’s a harmful trade.”