nsswitch: use goto to have only one function return