Mitigate double read locks on the layered profile

This commit is contained in:
Daniel
2022-08-02 13:59:13 +02:00
parent 0390ab55ab
commit 0b81fb5516
5 changed files with 27 additions and 14 deletions

View File

@@ -81,7 +81,7 @@ func GetNetworkHost(ctx context.Context, remoteIP net.IP) (process *Process, err
}
// Assign profile to process.
networkHost.LocalProfileKey = networkHostProfile.Key()
networkHost.PrimaryProfileID = networkHostProfile.ScopedID()
networkHost.profile = networkHostProfile.LayeredProfile()
if networkHostProfile.Name == "" {