If a fasting person masturbates (the meaning of masturbation was mentioned in Ruling 1551), his fast becomes invalid.