Open carry is generally legal. If he had a concealed carry permit, he was legal to buy carry concealed.
Why was he searched?
Scratch the ‘buy’
Because the gun wasnt always concealed.