They probably did search the illegal..
However, the dog “hitting” on the smell is enough to search with out a warrant.
That is why they train the dogs to “hit” on nothing so they can get around that pesky warrant thing.