[freeside-commits] branch FREESIDE_3_BRANCH updated. 459bd7aac2b4ca34b61fa58123f5c86c5ac9d537

Mark Wells mark at 420.am
Thu Aug 11 16:21:16 PDT 2016


The branch, FREESIDE_3_BRANCH has been updated
       via  459bd7aac2b4ca34b61fa58123f5c86c5ac9d537 (commit)
      from  2787aff7551116a223b4dea8bb144c1d03452d01 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 459bd7aac2b4ca34b61fa58123f5c86c5ac9d537
Author: Mark Wells <mark at freeside.biz>
Date:   Fri Aug 5 00:24:43 2016 -0700

    when allocating IP addresses, correctly roll over to the next block, #42406

diff --git a/FS/FS/IP_Mixin.pm b/FS/FS/IP_Mixin.pm
index d492046..beb41d2 100644
--- a/FS/FS/IP_Mixin.pm
+++ b/FS/FS/IP_Mixin.pm
@@ -153,14 +153,14 @@ sub assign_ip_addr {
     # don't exit early on assigning a free address--check the rest of 
     # the blocks to see if the current address is in one of them.
     if (!$new_addr) {
-      $new_addr = $block->next_free_addr->addr;
+      $new_addr = $block->next_free_addr;
       $new_block = $block;
     }
   }
  
   return 'No IP address available on this router' unless $new_addr;
 
-  $self->ip_addr($new_addr);
+  $self->ip_addr($new_addr->addr);
   $self->addr_block($new_block);
   '';
 }

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/IP_Mixin.pm |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list