Re: [PATCH 4/6] afs: Differentiate VL servers

From: David Howells
Date: Thu Sep 13 2018 - 17:51:01 EST


David Howells <dhowells@xxxxxxxxxx> wrote:

> + ret = -EPROTONOSUPPORT;
> + if (protocol != IPPROTO_UDP)
> + goto error;

This needs to be:

ret = -EPROTONOSUPPORT;
if (protocol != IPPROTO_UDP && protocol != 0)
goto error;

so that if the protocol is unspecified by the DNS upcall program, we choose
UDP.

David