David Howells <dhowe...@redhat.com> 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