It’s not clear whether such trades are legal.
Check it out:

An Illinois sheriff’s department is selling the guns it seizes from crime scenes, but civil libertarians wonder whether it has the authority to do so — and whether gun owners whose weapons were wrongfully confiscated are victimized by the policy.

Under Sheriff Darrell Cox, the Coles County Sheriff’s Department has made a habit of selling or trading guns it acquires through searches, seizures and forfeitures, according to Illinois Watchdog.

In on such trade, the department exchanged 11 pistols, shotguns and rifles to a local arms dealer in exchange for two assault rifles, according to documents obtained by Illinois Watchdog.