dnsmasq: bump to 2.82
This fixes a nasty problem introduced in 2.81 which causes random crashes on systems where there's significant DNS activity over TCP. It also fixes DNSSEC validation problems with zero-TTL DNSKEY and DS records. Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
This commit is contained in:
		| @@ -8,13 +8,13 @@ | |||||||
| include $(TOPDIR)/rules.mk | include $(TOPDIR)/rules.mk | ||||||
|  |  | ||||||
| PKG_NAME:=dnsmasq | PKG_NAME:=dnsmasq | ||||||
| PKG_UPSTREAM_VERSION:=2.81 | PKG_UPSTREAM_VERSION:=2.82 | ||||||
| PKG_VERSION:=$(subst test,~~test,$(subst rc,~rc,$(PKG_UPSTREAM_VERSION))) | PKG_VERSION:=$(subst test,~~test,$(subst rc,~rc,$(PKG_UPSTREAM_VERSION))) | ||||||
| PKG_RELEASE:=3 | PKG_RELEASE:=3 | ||||||
|  |  | ||||||
| PKG_SOURCE:=$(PKG_NAME)-$(PKG_UPSTREAM_VERSION).tar.xz | PKG_SOURCE:=$(PKG_NAME)-$(PKG_UPSTREAM_VERSION).tar.xz | ||||||
| PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq | PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq | ||||||
| PKG_HASH:=749ca903537c5197c26444ac24b0dce242cf42595fdfe6b9a5b9e4c7ad32f8fb | PKG_HASH:=84523646f3116bb5e1151efb66e645030f6e6a8256f29aab444777a343ebc132 | ||||||
|  |  | ||||||
| PKG_LICENSE:=GPL-2.0 | PKG_LICENSE:=GPL-2.0 | ||||||
| PKG_LICENSE_FILES:=COPYING | PKG_LICENSE_FILES:=COPYING | ||||||
|   | |||||||
| @@ -14,7 +14,7 @@ Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk> | |||||||
|  |  | ||||||
| --- a/src/dnsmasq.c | --- a/src/dnsmasq.c | ||||||
| +++ b/src/dnsmasq.c | +++ b/src/dnsmasq.c | ||||||
| @@ -94,10 +94,6 @@ int main (int argc, char **argv) | @@ -95,10 +95,6 @@ int main (int argc, char **argv) | ||||||
|     |     | ||||||
|    read_opts(argc, argv, compile_opts); |    read_opts(argc, argv, compile_opts); | ||||||
|    |    | ||||||
| @@ -27,7 +27,7 @@ Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk> | |||||||
|   |   | ||||||
| --- a/src/dnsmasq.h | --- a/src/dnsmasq.h | ||||||
| +++ b/src/dnsmasq.h | +++ b/src/dnsmasq.h | ||||||
| @@ -1110,7 +1110,7 @@ extern struct daemon { | @@ -1112,7 +1112,7 @@ extern struct daemon { | ||||||
|    int inotifyfd; |    int inotifyfd; | ||||||
|  #endif |  #endif | ||||||
|  #if defined(HAVE_LINUX_NETWORK) |  #if defined(HAVE_LINUX_NETWORK) | ||||||
| @@ -36,7 +36,7 @@ Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk> | |||||||
|  #elif defined(HAVE_BSD_NETWORK) |  #elif defined(HAVE_BSD_NETWORK) | ||||||
|    int dhcp_raw_fd, dhcp_icmp_fd, routefd; |    int dhcp_raw_fd, dhcp_icmp_fd, routefd; | ||||||
|  #endif |  #endif | ||||||
| @@ -1290,9 +1290,6 @@ int read_write(int fd, unsigned char *pa | @@ -1292,9 +1292,6 @@ int read_write(int fd, unsigned char *pa | ||||||
|  void close_fds(long max_fd, int spare1, int spare2, int spare3); |  void close_fds(long max_fd, int spare1, int spare2, int spare3); | ||||||
|  int wildcard_match(const char* wildcard, const char* match); |  int wildcard_match(const char* wildcard, const char* match); | ||||||
|  int wildcard_matchn(const char* wildcard, const char* match, int num); |  int wildcard_matchn(const char* wildcard, const char* match, int num); | ||||||
| @@ -141,16 +141,16 @@ Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk> | |||||||
|       my_syslog(LOG_ERR, _("failed to update ipset %s: %s"), setname, strerror(errno)); |       my_syslog(LOG_ERR, _("failed to update ipset %s: %s"), setname, strerror(errno)); | ||||||
| --- a/src/netlink.c | --- a/src/netlink.c | ||||||
| +++ b/src/netlink.c | +++ b/src/netlink.c | ||||||
| @@ -82,8 +82,7 @@ void netlink_init(void) | @@ -92,8 +92,7 @@ char *netlink_init(void) | ||||||
|      } |    iov.iov_len = 100; | ||||||
|  |    iov.iov_base = safe_malloc(iov.iov_len); | ||||||
|     |     | ||||||
|    if (daemon->netlinkfd == -1 ||  | -  if (daemon->kernel_version >= KERNEL_VERSION(2,6,30) && | ||||||
| -      (daemon->kernel_version >= KERNEL_VERSION(2,6,30) && | -      setsockopt(daemon->netlinkfd, SOL_NETLINK, NETLINK_NO_ENOBUFS, &opt, sizeof(opt)) == -1) | ||||||
| -       setsockopt(daemon->netlinkfd, SOL_NETLINK, NETLINK_NO_ENOBUFS, &opt, sizeof(opt)) == -1) || | +  if (setsockopt(daemon->netlinkfd, SOL_NETLINK, NETLINK_NO_ENOBUFS, &opt, sizeof(opt)) == -1) | ||||||
| +      (setsockopt(daemon->netlinkfd, SOL_NETLINK, NETLINK_NO_ENOBUFS, &opt, sizeof(opt)) == -1) || |      return _("warning: failed to set NETLINK_NO_ENOBUFS on netlink socket"); | ||||||
|        getsockname(daemon->netlinkfd, (struct sockaddr *)&addr, &slen) == -1) |  | ||||||
|      die(_("cannot create netlink socket: %s"), NULL, EC_MISC); |  | ||||||
|     |     | ||||||
|  |    return NULL; | ||||||
| --- a/src/util.c | --- a/src/util.c | ||||||
| +++ b/src/util.c | +++ b/src/util.c | ||||||
| @@ -786,22 +786,3 @@ int wildcard_matchn(const char* wildcard | @@ -786,22 +786,3 @@ int wildcard_matchn(const char* wildcard | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Kevin Darbyshire-Bryant
					Kevin Darbyshire-Bryant