From: Shawn Routhier Date: Wed, 10 Dec 2014 20:16:56 +0000 (-0800) Subject: [master] Fix up code to process host declartions in informs X-Git-Tag: v4_3_2.pre-beta~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd9738aaaf76c6270891cde41140a5928eb02168;p=thirdparty%2Fdhcp.git [master] Fix up code to process host declartions in informs Change the stopping point for processing statements in the host portion of the inform processing from a host option to a subnet one. rt35712 --- diff --git a/RELNOTES b/RELNOTES index 421318ace..4b83814ff 100644 --- a/RELNOTES +++ b/RELNOTES @@ -188,6 +188,14 @@ by Eric Young (eay@cryptsoft.com). whether or not the server is compiled for failover. [ISC-Bugs #36960] +- Fixed a small issue in the treatment of hosts in the inform processing + that could cause the response to an inform to include information from + the wrong scope. The two examples we've heard of are getting subnet + instead of group information associated with a host entry, or getting + global information instead of subnet if the host entry was built via + omapi. + [ISC-Bugs #35712] + Changes since 4.3.1b1 - Modify the linux and openwrt dhclient scripts to process information diff --git a/server/dhcp.c b/server/dhcp.c index 552955c81..b87b95350 100644 --- a/server/dhcp.c +++ b/server/dhcp.c @@ -1305,8 +1305,7 @@ void dhcpinform (packet, ms_nulltp) execute_statements_in_scope(NULL, packet, NULL, NULL, packet->options, options, &global_scope, host->group, - host->group ? - host->group->next : NULL, + subnet->group, NULL); host_dereference (&host, MDL); }