From 61c259a001ce027d2be3393f658b814258676673 Mon Sep 17 00:00:00 2001 From: nbd Date: Thu, 12 Jul 2012 22:20:21 +0000 Subject: [PATCH] mtr: remove a broken resolver related patch chunk to fix dns issues (fixes #11044) git-svn-id: svn://svn.openwrt.org/openwrt/packages@32690 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/mtr/patches/502-fix-res_ninit.patch | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/net/mtr/patches/502-fix-res_ninit.patch b/net/mtr/patches/502-fix-res_ninit.patch index efece774f..dc0a02b79 100644 --- a/net/mtr/patches/502-fix-res_ninit.patch +++ b/net/mtr/patches/502-fix-res_ninit.patch @@ -1,30 +1,5 @@ --- a/dns.c +++ b/dns.c -@@ -309,17 +309,17 @@ char nullstring[] = ""; - - int use_dns = 1; - --#ifdef res_ninit --#define MY_RES_INIT() res_ninit(&myres); --#define RES_MKQUERY(a, b, c, d, e, f, g, h, i) \ -- res_nmkquery(&myres, a, b, c, d, e, f, g, h, i) --struct __res_state myres; --#else -+//#ifdef res_ninit -+//#define MY_RES_INIT() res_ninit(&myres); -+//#define RES_MKQUERY(a, b, c, d, e, f, g, h, i) \ -+// res_nmkquery(&myres, a, b, c, d, e, f, g, h, i) -+//struct __res_state myres; -+//#else - #define MY_RES_INIT() res_init(); - #define RES_MKQUERY(a, b, c, d, e, f, g, h, i) \ - res_mkquery(a, b, c, d, e, f, g, h, i) - #define myres _res --#endif -+//#endif - - /* Code */ - #ifdef CorruptCheck @@ -1267,28 +1267,6 @@ res_nmkquery(res_state statp, return (-1); memset(buf, 0, HFIXEDSZ);