He illegally purchased a gun while addicted to drugs.