increases the risk of infection, especially when blood sugar
levels are out of control.
The best way to lower your risk is to keep your blood sugars in a normal, healthy range. There isn't much research into diabetes and the specific disease you mention (ecthyma gangrenosum) however, the likelihood of uncontrolled diabetes increasing the risk is high. http://flip.dlvr.it/rw.