x_recv funcs now set *res to NULL