diff --git a/system/jlib/jsocket.cpp b/system/jlib/jsocket.cpp index 420487f3afa..dc1c72b6b89 100644 --- a/system/jlib/jsocket.cpp +++ b/system/jlib/jsocket.cpp @@ -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; }