Skip to content

Commit

Permalink
Fix race condition in 33across.go (prebid#1757)
Browse files Browse the repository at this point in the history
Co-authored-by: Gus Carreon <[email protected]>
  • Loading branch information
guscarreon and Gus Carreon authored Mar 18, 2021
1 parent fc87d1d commit bdf1e7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adapters/33across/33across.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func (a *TtxAdapter) MakeBids(internalRequest *openrtb.BidRequest, externalReque
}

func validateVideoParams(video *openrtb.Video, prod string) (*openrtb.Video, error) {
videoCopy := video
videoCopy := *video
if videoCopy.W == 0 ||
videoCopy.H == 0 ||
videoCopy.Protocols == nil ||
Expand All @@ -252,7 +252,7 @@ func validateVideoParams(video *openrtb.Video, prod string) (*openrtb.Video, err
}
}

return videoCopy, nil
return &videoCopy, nil
}

func getBidType(ext bidExt) openrtb_ext.BidType {
Expand Down

0 comments on commit bdf1e7b

Please sign in to comment.