diff --git a/src/servers/net/NetServer.cpp b/src/servers/net/NetServer.cpp index 2e9c045f09..27da836cdd 100644 --- a/src/servers/net/NetServer.cpp +++ b/src/servers/net/NetServer.cpp @@ -351,9 +351,10 @@ NetServer::MessageReceived(BMessage* message) case kMsgAddPersistentNetwork: { - status_t result = _ConvertNetworkToSettings(*message); + BMessage network = *message; + status_t result = _ConvertNetworkToSettings(network); if (result == B_OK) - result = fSettings.AddNetwork(*message); + result = fSettings.AddNetwork(network); BMessage reply(B_REPLY); reply.AddInt32("status", result);