GREEN COVE SPRINGS, Fla. -- A man could go to jail for up to 40 years after entering a guilty plea in connection with the gun used in the death of Clay County Sheriff's Detective David White.

Curtis Dingler, 29, pleaded guilty to dealing in stolen property, as well as possession of ammunition by a convicted felon, sale of cannabis and possession of controlled substance paraphernalia.

Dingler is scheduled for sentencing on October 21.

According to the release, Dingler's co-defendant, Curtis Henderson, pleaded guilty in June to a charge of dealing in stolen property and received two years in prison. Two other co-defendants in the stolen gun case - Robert Apple II and Jack Lemond - were sentenced to seven years in prison for a guilty plea in May for dealing in stolen property.

The release said the gun was stolen in Jacksonville in May 2011, and eventually ended up in the hands of Ted Tilley, who shot and killed White during narcotics investigation in 2012. Tilley was killed during the incident, as well.