]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
[master]
authorShawn Routhier <sar@isc.org>
Wed, 30 Oct 2013 20:34:22 +0000 (13:34 -0700)
committerShawn Routhier <sar@isc.org>
Wed, 30 Oct 2013 20:34:22 +0000 (13:34 -0700)
Squashed commit of the following:

commit 9b0ea01f2afd1fb7ec1409166183a92731314ca7
Author: Shawn Routhier <sar@isc.org>
Date:   Tue Oct 22 12:02:41 2013 -0700

    -n [rt34924]
    Modify the on_commit code to use a reasonable scope as the reply->lease
    value may not be set, we should use the tmp->scope as we go through
    the iasubopts.

server/dhcpv6.c

index 7008817a608cc2fc76f7a9cc51fad62024aaf38d..4f150511ea074a950f13f4aa4f4453a4ed51fb11 100644 (file)
@@ -1927,7 +1927,7 @@ reply_process_ia_na(struct reply_state *reply, struct option_cache *ia) {
                                                   NULL, NULL, 
                                                   reply->packet->options,
                                                   reply->opt_state,
-                                                  &reply->lease->scope,
+                                                  &tmp->scope,
                                                   tmp->on_star.on_commit,
                                                   &tmp->on_star);
                                executable_statement_dereference
@@ -2628,7 +2628,7 @@ reply_process_ia_ta(struct reply_state *reply, struct option_cache *ia) {
                                                   NULL, NULL, 
                                                   reply->packet->options,
                                                   reply->opt_state,
-                                                  &reply->lease->scope,
+                                                  &tmp->scope,
                                                   tmp->on_star.on_commit,
                                                   &tmp->on_star);
                                executable_statement_dereference
@@ -3647,7 +3647,7 @@ reply_process_ia_pd(struct reply_state *reply, struct option_cache *ia) {
                                                   NULL, NULL, 
                                                   reply->packet->options,
                                                   reply->opt_state,
-                                                  &reply->lease->scope,
+                                                  &tmp->scope,
                                                   tmp->on_star.on_commit,
                                                   &tmp->on_star);
                                executable_statement_dereference