[SCM] Samba Shared Repository - branch master updated
- 50feca550eed7828198b7c0fc5f0e5ddc863313d
Stefan (metze) Metzmacher
metze at samba.org
Wed Dec 24 12:41:13 GMT 2008
Hi Tim,
> diff --git a/source4/libcli/resolve/dns_ex.c b/source4/libcli/resolve/dns_ex.c
> index 948ad9f..17e7aad 100644
> --- a/source4/libcli/resolve/dns_ex.c
> +++ b/source4/libcli/resolve/dns_ex.c
> @@ -278,7 +278,11 @@ static void run_child_getaddrinfo(struct dns_ex_state *state, int fd)
> hints.ai_flags = AI_ADDRCONFIG | AI_NUMERICSERV;
>
> ret = getaddrinfo(state->name.name, "0", &hints, &res_list);
> +#if defined(EAI_NODATA) && (EAI_NODATA != EAI_NONAME)
why such a complex logic? just '#ifdef EAI_NODATA' would do the same...
> if (ret == EAI_NODATA && state->do_fallback) {
> +#else
> + if (ret == EAI_NONAME && state->do_fallback) {
> +#endif
metze
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.samba.org/archive/samba-technical/attachments/20081224/952789db/signature.bin
More information about the samba-technical
mailing list