[PATCH 2/9] libc/inet/resolv.c: fix getting the nameserver from _res state after res_init.

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Fri Mar 29 09:35:14 UTC 2013


On Fri, Sep 21, 2012 at 05:29:12PM +0200, Florian Fainelli wrote:
> From: Felix Fietkau <nbd at openwrt.org>
> 
> Fixes displaying the nameserver in busybox nslookup.

Applied, thanks!
> 
> Signed-off-by: Felix Fietkau <nbd at openwrt.org>
> ---
>  libc/inet/resolv.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c
> index fff2794..649128a 100644
> --- a/libc/inet/resolv.c
> +++ b/libc/inet/resolv.c
> @@ -3645,11 +3645,11 @@ res_init(void)
>  	 */
>  	if (!_res.id)
>  		_res.id = res_randomid();
> -	__res_sync = res_sync_func;
>  
>  	__UCLIBC_MUTEX_UNLOCK(__resolv_lock);
>  
>  	__res_vinit(&_res, 1);
> +	__res_sync = res_sync_func;
>  
>  	return 0;
>  }


More information about the uClibc mailing list