Blame SOURCES/dhcp-prepend.patch

45d60a
diff -up dhcp-4.2.5/client/dhc6.c.prepend dhcp-4.2.5/client/dhc6.c
45d60a
--- dhcp-4.2.5/client/dhc6.c.prepend	2016-04-18 14:21:41.062502036 +0200
45d60a
+++ dhcp-4.2.5/client/dhc6.c	2016-04-18 14:25:11.683732506 +0200
45d60a
@@ -595,7 +595,7 @@ dhc6_dup_addr(struct dhc6_addr *addr, co
45d60a
  * Parsed options are deleted in order to not save them in the lease file.
45d60a
  */
45d60a
 static struct dhc6_lease *
45d60a
-dhc6_leaseify(struct packet *packet)
45d60a
+dhc6_leaseify(struct packet *packet, struct client_state* client)
45d60a
 {
45d60a
 	struct data_string ds;
45d60a
 	struct dhc6_lease *lease;
45d60a
@@ -687,6 +687,11 @@ dhc6_leaseify(struct packet *packet)
45d60a
 				      lease->server_id.data, 52));
45d60a
 	}
45d60a
 
45d60a
+	execute_statements_in_scope(NULL, (struct packet *)packet, NULL,
45d60a
+				    client, lease->options, lease->options,
45d60a
+				    &global_scope, client->config->on_receipt,
45d60a
+				    NULL);
45d60a
+
45d60a
 	return lease;
45d60a
 }
45d60a
 
45d60a
@@ -2892,7 +2897,7 @@ init_handler(struct packet *packet, stru
45d60a
 		return;
45d60a
 	}
45d60a
 
45d60a
-	lease = dhc6_leaseify(packet);
45d60a
+	lease = dhc6_leaseify(packet, client);
45d60a
 
45d60a
 	if (dhc6_check_advertise(lease) != ISC_R_SUCCESS) {
45d60a
 		log_debug("PRC: Lease failed to satisfy.");
45d60a
@@ -2975,6 +2980,12 @@ info_request_handler(struct packet *pack
45d60a
 	option_state_reference(&client->active_lease->options,
45d60a
 			       packet->options, MDL);
45d60a
 
45d60a
+	execute_statements_in_scope(NULL, (struct packet *)packet, NULL, client,
45d60a
+				    client->active_lease->options,
45d60a
+				    client->active_lease->options,
45d60a
+				    &global_scope, client->config->on_receipt,
45d60a
+				    NULL);
45d60a
+
45d60a
 	start_informed(client);
45d60a
 }
45d60a
 
45d60a
@@ -3009,7 +3020,7 @@ rapid_commit_handler(struct packet *pack
45d60a
 		return;
45d60a
 	}
45d60a
 
45d60a
-	lease = dhc6_leaseify(packet);
45d60a
+	lease = dhc6_leaseify(packet, client);
45d60a
 
45d60a
 	/* This is an out of memory condition...hopefully a temporary
45d60a
 	 * problem.  Returning now makes us try to retransmit later.
45d60a
@@ -3823,7 +3834,7 @@ reply_handler(struct packet *packet, str
45d60a
 		return;
45d60a
 	}
45d60a
 
45d60a
-	lease = dhc6_leaseify(packet);
45d60a
+	lease = dhc6_leaseify(packet, client);
45d60a
 
45d60a
 	/* This is an out of memory condition...hopefully a temporary
45d60a
 	 * problem.  Returning now makes us try to retransmit later.
45d60a
diff -up dhcp-4.2.5/RELNOTES.prepend dhcp-4.2.5/RELNOTES