It could be nasty if you used a ported barrel that was made to work with the slide ports in a Glock 23C.
Make sure the ported 357 sig barrel is longer than your 40 barrel and make sure the porting holes are in front of the front sight, not inside the slide.