Apparently it can be a problem in both sexes, see 2nd paragraph below.

 

 https://www.pets4homes.co.uk/pet-advice/**bleep**-gland-problems-in-dogs.html