Well, yes, this is unfortunate that the patch from there fell through the cracks. While I personally don't feel strong against that approach, I think avoid any further handling and just faking success is not ideal, the fact the port is 0 doesn't mean that there are no other potential errors if trying to send that, especially if that is sendmsg() and not sendto(). Also this variant is probably a tiny bit simpler.