This is a known bug introduced by the struct sock splitup into
external per-protocol pieces done by Arnaldo de Melo. He is working
on the proper fix, your proposed change will just paper over the real
bug.