First we need to know why the cops pulled you over and searched your car the first time, the second time everything is legal, you did a violation and a K-9 search outside your vehicle is not a violation of your 4th amendment, so you are stuck with those tickets, lucky for you they are chicken...