My friend was pulled over for going 40mph on a 35mph road (this is what the officer said he pulled him over for) My friend agreed to a search of his car but to my suprise the officers started to search me and the other 3 passengers. The officer searching me said it was a search for weapons and after patting me down he went through all my pockets and even had me unzip my pants to search the shorts underneath. He finds a small plastic bag with marijuana residue in it and gives me a citation and says a court date will be mailed. What can I do in this situation? Was the search on me and the other passengers legal?