Skip to content

Commit

Permalink
HPCC-30757 Fix IpAddress::ipincrement hostname bug
Browse files Browse the repository at this point in the history
Signed-off-by: Jake Smith <[email protected]>
  • Loading branch information
jakesmith committed Nov 7, 2023
1 parent e09fb04 commit 74f9fa2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions system/jlib/jsocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3736,6 +3736,9 @@ bool IpAddress::ipincrement(unsigned count,byte minoctet,byte maxoctet,unsigned
count = v/base;
}
}
StringBuffer hname;
getIpText(hname);
hostname.setown(hname); // NB: StringAtr::setown detaches ownership from StringBuffer
return true;
}

Expand Down

0 comments on commit 74f9fa2

Please sign in to comment.