A man jailed for firing at a police woman after she shot him in the groin was later caught with drugs he intended to sell while on parole.