Fix CVE-2018-10392 : Sanity check number of channels in setup