It's not uncommon for mother dog to develop mastitis, the medical term for an infection of the dog's milk producing glands.
It's often caused by the puppy's nails scratching the nipples or unsanitary conditions.
Symptoms include hot, painful mammary glands, and a pus/bloody discharge from nipples.