We had a dog that came to us through a relative. He snapped at me a couple of times. And then he snapped at my young daughter.
He got his ass kicked over the rainbow bridge the next day. The vet said that dog aint right in the head.
You may have averted a bigger problem.