If you have marijuana in your pocket, it's not a good idea to pet a patrolling police dog.



The Binghamton Press & Sun Bulletin reports that 48-year-old Kelly Simpson was busted Wednesday after he stopped to pet K-9 Tarah, who was on foot patrol with her handler in Endicott.



Police say Tarah smelled marijuana and alerted the officer.



Simpson was charged with unlawful possession of marijuana, a violation, and released on an appearance ticket.