Adrenal insufficiency can also result when a patient has a craniopharyngioma, which is a histologically benign tumor that can damage the pituitary gland and so cause the adrenal glands not to function.