Hi sore on the ridge of the penis which is foul smelling can be candidiasis
.it is a fungal albicans which is inturn due to diabetes
or white discharge in the partner.
It can be cured by atarax
25 mg at night.flucanazole weekly once and application of nizral cream twice daily