Find a smith to straighten it. Or do it yourself. You need a straight edge, dial indicator and shop press. Use the straight edge to find the bend, mark it's center and press that spot until the indicator reads below 0.005" runout. The bend is probably in the upper third of the barrel toward the muzzle. Block it on either side of the bend to just work that portion of the barrel. The straight edge will tell you how far apart to block it.
I've also seen them straightened by finding the center of the bend and swinging the barrel onto a lead shot bag. That's an old school way to do it.
All that said, it isn't unsafe to shoot. You have to have a severe bend to cause an issue. Something like a true kink. A gradual bend won't cause issues.
Jeremy