It’s been a while since I’ve seen such a great expression!
From the Dictionary of Nautical, University, Gypsy and Other Vulgar Tongues first published in 1859.
Glasgow Magistrates: salt herrings. Scotch.
(Ha! I wonder what the magistrates did to deserve that!)